| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gh-95994: clarify escaped newlines.
* Rephrase ambiguous sentence.
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* Use `<newline>` in escape sequences table.
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>.
(cherry picked from commit c3d591fd0699605c8253beda2372114052a7bdba)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
|
| |
|
|
|
|
|
|
| |
modifiers (GH-94551) (GH-94558)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
(cherry picked from commit 3440d197a55800ecceea3e115e44b4262411359c)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
|
| |
|
|
|
| |
(cherry picked from commit 549567c6e70da4846c105a18a1a89e7dd09680d7)
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
|
| |
|
|
|
| |
(cherry picked from commit 01be5d6446abbdd95d0c18bd19a58a62b05568d8)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
|
|
|
|
| |
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 32959108f9c543e3cb9f2b68bbc782bddded6f42)
Co-authored-by: Arthur Milchior <arthur@milchior.fr>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Also:
* Expand the discussion into its own entry. (Even before this,
text on ``_`` was longet than the text on ``_*``.)
* Briefly note the other common convention for `_`: naming unused
variables.
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3dee0cb6217db326e844955a7f8b424c67990557)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
|
| |
|
|
|
|
|
|
|
| |
This is a first edition, ready to go out with the implementation. We'll iterate during the rest of the period leading up to 3.10.0.
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Fidget-Spinner <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Brandt Bucher <brandt@python.org>
Co-authored-by: Raymond Hettinger <1623689+rhettinger@users.noreply.github.com>
Co-authored-by: Guido van Rossum <guido@python.org>
|
| |
|
|
|
|
|
| |
Use an unique identifier for the different grammars documented using
the Sphinx productionlist markup.
productionlist markups of the same grammar, like "expressions" or
"compound statements", use the same identifier "python-grammar".
|
| |
|
| |
Automerge-Triggered-By: @kushaldas
|
| |
|
|
|
| |
Co-Authored-By: Rishi <rishi93dev@gmail.com>
Automerge-Triggered-By: @gvanrossum
|
| |
|
|
|
| |
Use Sphinx role markup for `str.format`.
Automerge-Triggered-By: @csabella
|
| |
|
| |
Automerge-Triggered-By: @csabella
|
| |
|
|
|
|
|
|
|
| |
* issue 40045
* Update lexical_analysis.rst
Make "dunder" method documentation easier(GH-19153)
Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
|
| | |
|
| | |
|
| |
|
| |
https://bugs.python.org/issue39545
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add or update assignment expression documentation for:
- FAQ - Design
- Reference - Expressions
- Reference - Lexical Analysis
https://bugs.python.org/issue35224
Automerge-Triggered-By: @matrixise
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
DeprecationWarning will continue to be emitted for invalid escape
sequences in string and bytes literals just as it did in 3.7.
SyntaxWarning may be emitted in the future. But per mailing list
discussion, we don't yet know when because we haven't settled on how to
do so in a non-disruptive manner.
(Applies 4c5b6bac2408f879231c7cd38d67657dd4804e7c to the master branch).
(This is https://github.com/python/cpython/pull/15142 for master/3.9)
https://bugs.python.org/issue32912
Automerge-Triggered-By: @gpshead
|
| |
|
|
|
| |
doc(https://docs.python.org/3) (GH-13120)
https://bugs.python.org/issue34682
|
| |
|
| |
Adds ㋿.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
for invalid escape sequences in string and bytes literals.
|
| | |
|
| |
|
| |
Also, standardize indentation of generated tables.
|
| |
|
|
| |
The f-string example for using datetime format specifier does not match the given output.
Changed the format from %b to %B so it matches the output of "January".
|
| |
|
|
|
|
|
| |
link (GH-5157)
In lexical analysis reference documentation, the internal link to
the string literal concatenation section was written as`.. _string-catenation:`.
Changed that to `.. _string-concatenation:`.
|
| |
|
|
| |
Mention that the format-specifier mini language in f-strings
is the same one used by str.format.
|
| |
|
| |
Link to the Format Specification Mini Language section from f-strings' documentation.
|
| |
|
|
|
| |
async and await keywords has been merged into upstream, but they are
all missing in the lexical analysis docs. This change adds them to the
appropriate keywords section in documentation.
|
| |
|
|
| |
- Remove the second mention about the `u` prefix
- Remove the second mention about numeric literals do not include a sign
|
| |
|
| |
Shorten the comment to: "using integer format specifier"
|
| |
|
|
|
| |
Provide additional examples of using format specifiers in f-strings
Added examples for using integer and date format specifiers.
|
| |
|
| |
Straightforward. While we're at it, though, strip trailing whitespace from generated tables.
|
| | |
|
| |
|
|
| |
allowed), matching recent changes to PEP 498.
|
| |
|
|
| |
Thanks to Georg Brandl for the patch.
|
| |
|
|
| |
Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter.
|
| |\ |
|
| | |
| |
| |
| | |
Patch by Julien Palard.
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| |\ \
| |/ |
|
| | | |
|
| |/
|
|
|
| |
Some of the inspiration and wording is taken from the text of PEP 498 by Eric
V. Smith, and the existing str.format() documentation.
|
| |\
| |
| |
| | |
Patch from Terry Reedy
|
| | |
| |
| |
| | |
Patch from Terry Reedy
|