Author gvanrossum
Recipients BTaskaya, Mark.Shannon, brandtbucher, brett.cannon, eric.snow, gvanrossum, indygreg, larry, lemburg, methane, miss-islington, nascheme, ncoghlan, rhettinger, ronaldoussoren, shihai1991, terry.reedy, vstinner
Date 2021-09-21.20:16:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632255367.91.0.0918842658423.issue45020@roundup.psfhosted.org>
In-reply-to
Content
I'm still torn about the need for a __file__ attribute. Assuming it's more likely that people write code that *reads* stdlib source for some reason (maybe printing more context for error messages) than *writing* it (which would be truly strange), the amount of 3rd party code that might break due to the lack of __file__ can be expected to be larger than the amount of code (or number of users) that would be confused to having a __file__ pointing to a file that isn't actually read by the interpreter.

Okay, so I'm no longer torn. We should set __file__ for frozen modules based on the pre-computed location of the stdlib.
History
Date User Action Args
2021-09-21 20:16:07gvanrossumsetrecipients: + gvanrossum, lemburg, brett.cannon, nascheme, rhettinger, terry.reedy, ronaldoussoren, ncoghlan, vstinner, larry, methane, Mark.Shannon, eric.snow, indygreg, miss-islington, brandtbucher, BTaskaya, shihai1991
2021-09-21 20:16:07gvanrossumsetmessageid: <1632255367.91.0.0918842658423.issue45020@roundup.psfhosted.org>
2021-09-21 20:16:07gvanrossumlinkissue45020 messages
2021-09-21 20:16:07gvanrossumcreate