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 terry.reedy
Recipients ZackerySpytz, terry.reedy
Date 2021-02-01.22:30:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612218600.91.0.55231270335.issue38078@roundup.psfhosted.org>
In-reply-to
Content
Zachery, thank you for the PR to test.  It turns out that the proposed change is more dangerous the the possible error it prevent.  I could have easily missed the problem (not setting __file__, see PR).

Before considering this again, I need to list ways to run user code with Python and what envivonment (cwd, path, dir() results.  Then see what IDLE does in corresponding situations.
History
Date User Action Args
2021-02-01 22:30:00terry.reedysetrecipients: + terry.reedy, ZackerySpytz
2021-02-01 22:30:00terry.reedysetmessageid: <1612218600.91.0.55231270335.issue38078@roundup.psfhosted.org>
2021-02-01 22:30:00terry.reedylinkissue38078 messages
2021-02-01 22:30:00terry.reedycreate