This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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
History
Date User Action Args
2011-10-16 23:32:33aronachersetrecipients: + aronacher, gvanrossum, jhylton, brett.cannon, prescod, glchapman, terry.reedy, isandler, ncoghlan
2011-10-16 23:32:33aronachersetmessageid: <1318807953.05.0.64393363802.issue415492@psf.upfronthosting.co.za>
2011-10-16 23:32:32aronacherlinkissue415492 messages
2011-10-16 23:32:32aronachercreate