]> granicus.if.org Git - python/commit
Patch #703779: unset __file__ in __main__ after running a file. This
authorGeorg Brandl <georg@python.org>
Wed, 7 Mar 2007 00:40:28 +0000 (00:40 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 7 Mar 2007 00:40:28 +0000 (00:40 +0000)
commitaa2321b0f8f8d51fe6aa1e8b9c81d989e642982d
treeda24f798ec16aa968cfa6fed0f3844eb7e81b0e8
parent49aafc9f2ce7d41be677cdefbcf0af6d9bd1e752
Patch #703779: unset __file__ in __main__ after running a file. This
makes the filenames the warning module prints much more sensible when
a PYTHONSTARTUP file is used.
Misc/NEWS
Python/pythonrun.c