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 eric.araujo
Recipients StevenHsuYL, docs@python, eric.araujo, steven.daprano
Date 2021-07-23.20:08:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627070901.27.0.220963824745.issue44693@roundup.psfhosted.org>
In-reply-to
Content
> it doesn't do a normal import of the `__future__.py` module, it is actually a compiler directive.

It’s both!  The compiler has special handling for this line (pseudo-module), and the interpreter does a regular import that gets the regular python module which can be used for introspection (the third purpose noted in the module doc).
History
Date User Action Args
2021-07-23 20:08:21eric.araujosetrecipients: + eric.araujo, steven.daprano, docs@python, StevenHsuYL
2021-07-23 20:08:21eric.araujosetmessageid: <1627070901.27.0.220963824745.issue44693@roundup.psfhosted.org>
2021-07-23 20:08:21eric.araujolinkissue44693 messages
2021-07-23 20:08:21eric.araujocreate