Armin Ronacher <[email protected]> added the comment:
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
----------
nosy: +aronacher
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue415492>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com