homepage

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 dangyogi
Recipients dangyogi
Date 2010年04月24日.01:18:07
SpamBayes Score 1.1256066e-09
Marked as misclassified No
Message-id <1272071890.53.0.295001627395.issue8515@psf.upfronthosting.co.za>
In-reply-to
Content
The python CLI always sets the __file__ variable, whether run as:
$ python foobar.py
or
$ python -m foobar
or
$ python
>>> import foobar # __file__ set in foobar module
The idle program sets the __file__ variable properly when you do the import from the idle shell, but __file__ is not set with the "Run Module" (F5) command from the editor.
I've included a patch file to set __file__, but it doesn't del it after the module has run. But maybe this is OK, because the os.chdir is not undone either???
History
Date User Action Args
2010年04月24日 01:18:10dangyogisetrecipients: + dangyogi
2010年04月24日 01:18:10dangyogisetmessageid: <1272071890.53.0.295001627395.issue8515@psf.upfronthosting.co.za>
2010年04月24日 01:18:08dangyogilinkissue8515 messages
2010年04月24日 01:18:08dangyogicreate

AltStyle によって変換されたページ (->オリジナル) /