Message107551
I believe IDLE runs modules via execfile(), so I would expect the behavior to be similar, and execfile() does not set __file__. Doing "Run Module" is also IMO equivalent to doing execfile(), so this behavior retains consistency.
However, I would expect __file__ to be set when running IDLE -r <script>, but I get "name '__file__' is not defined" (with Python 2.6.2). This is inconsistent and should be fixed. |
|
Date |
User |
Action |
Args |
2010-06-11 15:11:30 | taleinat | set | recipients:
+ taleinat, dangyogi |
2010-06-11 15:11:29 | taleinat | set | messageid: <1276269089.89.0.608423270885.issue8515@psf.upfronthosting.co.za> |
2010-06-11 15:11:27 | taleinat | link | issue8515 messages |
2010-06-11 15:11:27 | taleinat | create | |
|