Éric Araujo <[email protected]> added the comment:

> 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).

----------
nosy: +eric.araujo

_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44693>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to