Message145652
| Author |
aronacher |
| Recipients |
aronacher, brett.cannon, glchapman, gvanrossum, isandler, jhylton, ncoghlan, prescod, terry.reedy |
| Date |
2011年10月16日.23:32:32 |
| SpamBayes Score |
3.520012e-11 |
| Marked as misclassified |
No |
| Message-id |
<1318807953.05.0.64393363802.issue415492@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The reason why this is a problem:
$ cat test.py
def foo():
pass
>>> import test, os, inspect
>>> os.chdir('/')
>>> inspect.getsource(test)
'def foo():\n pass\n'
But
>>> import test, os, inspect
>>> os.chdir('/')
>>> inspect.getsource(test)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: source code not available |
|