-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
Description
Documentation
(From Discourse: https://discuss.python.org/t/help-understanding-future-module-description/35442/5?u=nedbat)
I was confused by the first line in the docs for
__future____future__ is a real module, and serves three purposes:
What does it mean by a “real” module? What are modules that aren’t “real”?
Then:
I’d say “real module” is strange all the time, and we don’t need it.
"import __future__" serves three purposesis good.What I would mostly like to change on that page is to document what each import does. The page spends a lot of words explaining the
_Featureobjects, which no one uses, but doesn’t say what (for example) from__future__ import annotationsactually does. It links off to PEPs that are good historical records of decision making, but aren’t good ways to explain what Python does right now.
cc @merwok