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 lemburg
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-25.16:29:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <f1d35359-0d55-0def-ba86-4614890860fc@egenix.com>
In-reply-to <1632586853.61.0.34746758589.issue45020@roundup.psfhosted.org>
Content
On 25.09.2021 18:20, STINNER Victor wrote:
> 
> STINNER Victor <vstinner@python.org> added the comment:
> 
> Marc-Andre: I suppose that you're talking about LANDMARK in Modules/getpath.c and PC/getpathp.c.

Now that you mention it: yes, that as well :-) But os.py is used in the
Python stdlib code as well, just search for "os.__file__" to see a few
such uses.

If you search for ".__file__" you'll find that there are quite a few
cases in the test suite expecting that attribute on other stdlib modules
as well. The attribute may officially be optional, but in reality a
lot of code expects to find it.
History
Date User Action Args
2021-09-25 16:29:19lemburgsetrecipients: + lemburg, gvanrossum, brett.cannon, nascheme, rhettinger, terry.reedy, ronaldoussoren, ncoghlan, vstinner, larry, methane, Mark.Shannon, eric.snow, indygreg, miss-islington, brandtbucher, BTaskaya, shihai1991
2021-09-25 16:29:19lemburglinkissue45020 messages
2021-09-25 16:29:19lemburgcreate