-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-44693: Update __future__ entry in Doc/glossary.rst #27349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Update definition of the __future__ in the glossary.
Remove white space.
Doc/glossary.rst
Outdated
A pseudo-module which programmers can use to enable new language features | ||
which are not compatible with the current interpreter. | ||
A :ref:`future statement <future>`, "from __future__ import *feature* | ||
...", directs the compiler to compile the current module using syntax or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code can use three backticks ` rather than quote marks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will look at the result either way. I will also move the paragraph break and remove the duplicate module reference that follows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two backticks, not one or three, are needed for inline code in .rst. I decided to remove ...
from the quoted code; one interested in the full syntax will have to look at the doc. I also removed the paragraph break.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed *feature*
to <feature>
as the latter is, I believe, used more for a syntax variable.
Thanks @StevenHsuYL for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9. |
GH-27357 is a backport of this pull request to the 3.10 branch. |
GH-27358 is a backport of this pull request to the 3.9 branch. |
Replace sentence with confusing "pseudo-module" with two sentences separating future statements and the __future__ module. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 0363a40) Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
Replace sentence with confusing "pseudo-module" with two sentences separating future statements and the __future__ module. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 0363a40) Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
…-27357) Replace sentence with confusing "pseudo-module" with two sentences separating future statements and the __future__ module. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 0363a40) Co-authored-by: Steven Hsu <hsuhaochun@gmail.com> Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
…-27358) Replace sentence with confusing "pseudo-module" with two sentences separating future statements and the __future__ module. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 0363a40) Co-authored-by: Steven Hsu <hsuhaochun@gmail.com> Co-authored-by: Steven Hsu <hsuhaochun@gmail.com>
Replace sentence with confusing "pseudo-module" with two sentences separating future statements and the future module.
https://bugs.python.org/issue44693