Staging
v0.8.1
https://github.com/python/cpython
Revision d86254bc2514ec4fb9e62126c02ef2f6458db67d authored by Johannes Gijsbers on 12 March 2005, 16:38:39 UTC, committed by Johannes Gijsbers on 12 March 2005, 16:38:39 UTC
functions, etc., had comments after the colon, and some other cases.
This patch take a simpler approach that doesn't rely on looking for a
':'. Test cases are not backported, as test_inspect.py has been
rewritten using unittest on the trunk.

Thanks Simon Percivall!
1 parent e3fa061
History
Tip revision: d86254bc2514ec4fb9e62126c02ef2f6458db67d authored by Johannes Gijsbers on 12 March 2005, 16:38:39 UTC
Backport of patch #1159931/bug #1143895: inspect.getsource failed when
Tip revision: d86254b
File Mode Size
.cvsignore -rw-r--r-- 21 bytes
building.tex -rw-r--r-- 5.3 KB
embedding.tex -rw-r--r-- 11.5 KB
ext.tex -rw-r--r-- 1.7 KB
extending.tex -rw-r--r-- 55.8 KB
newtypes.tex -rw-r--r-- 53.8 KB
noddy.c -rw-r--r-- 1.7 KB
noddy2.c -rw-r--r-- 4.9 KB
noddy3.c -rw-r--r-- 5.8 KB
noddy4.c -rw-r--r-- 5.4 KB
run-func.c -rw-r--r-- 2.0 KB
setup.py -rw-r--r-- 285 bytes
test.py -rw-r--r-- 3.7 KB
windows.tex -rw-r--r-- 13.8 KB

back to top