bpo-44693: Update __future__ entry in Doc/glossary.rst#27349
Conversation
Update definition of the __future__ in the glossary.
Remove white space.
| 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.
Code can use three backticks ` rather than quote marks
There was a problem hiding this comment.
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.
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.
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