Commit Graph

20 Commits

Author SHA1 Message Date
Adam Turner 42f88f1ce2
Display list names in Resolution and Discussions-To headers (#2361) 2022-02-27 14:46:36 -08:00
Adam Turner 113e490701
Several PEPs: Use explicit `:pep:` and `:rfc:` roles (#2209) 2022-01-21 11:03:51 +00:00
Dimitri Papadopoulos Orfanos 57d9baf04d
Typos found by codespell (#2073)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-09-17 11:18:24 -07:00
Brandt Bucher c043875156
PEP 634: Clarify late-registration edge-case (GH-2001) 2021-06-24 16:56:40 -07:00
Brandt Bucher b7e5a99aa0
PEP 634: Fix markup for sequence pattern note (GH-1940) 2021-04-29 15:08:57 -07:00
Mark Shannon 6be779381a
PEP 634: Reword sequence and mapping patterns sections to be more robust (#1937)
The new language is more precise, and leaves the door open for more implementation options, by not seeming to require that the pattern implementation must import collections.abc.

The new language allows only using sys.modules if has already been imported (e.g. by peeking in sys.modules).

Also, for internal use of CPython, two new flags, `Py_TPFLAGS_SEQUENCE` and `Py_TPFLAGS_MAPPING` are introduced, which support recognizing built-in sequence and mapping types without importing collections.abc.
2021-04-26 07:10:51 -07:00
Guido van Rossum d196748ac1
PEP 634: Allow keyword patterns for int, str etc. (#1908) 2021-04-05 10:39:20 -07:00
Guido van Rossum d6359564f8
PEP 634: Change so __match_args__ must be a tuple (#1909) 2021-04-05 10:38:02 -07:00
Ken Jin bff63f80cf
PEP 634: Fix error typo in mapping patterns (TypeError ->ValueError) (GH-1839) 2021-02-23 23:15:36 -08:00
Brandt Bucher f304c6f353
brandtbucher@gmail.com -> brandt@python.org (GH-1814) 2021-02-11 14:32:18 -08:00
Brandt Bucher 604b51399c
PEP 634/635/636: Accept! (#1807) 2021-02-08 16:37:04 -08:00
Guido van Rossum f72d3d61bc PEP 634, 635, 636: Update Post-History 2020-10-31 13:43:32 -07:00
Brandt Bucher e2bbee5cbf
PEP 634: Fix code block markup (#1682) 2020-10-23 17:25:45 -07:00
Daniel F Moisset 5a65e84863
PEP 634: Describe how keys are compared in mapping patterns (#1675) 2020-10-22 16:32:17 -07:00
Guido van Rossum ae72ad352a PEP 634: fix error in definition of irrefutable pattern 2020-10-22 09:46:45 -07:00
Guido van Rossum d3f060d0ca PEP 634: expand section on side effects and undefined behavior 2020-10-21 18:52:20 -07:00
Guido van Rossum dad6766f2b
PEP 634: change walrus pattern to AS pattern (#1661)
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2020-10-19 15:30:33 -07:00
Guido van Rossum a888e419e7
PEP 634: Define irrefutable and add requirements around it (#1649) 2020-10-12 16:53:02 -07:00
Guido van Rossum ada9ee667f
PEP 634: Finish up, ready for SC review (#1633)
Clean up PEP 634 (the new PEP 622).

Renamed Constant Value Pattern to Value Pattern. Renamed a few other grammar rules as well.

Leave open for the SC to decide: whether to change `name := pattern` to `pattern as name`.

Note that the companion PEP 635 (motivation and rationale) and PEP 636 (tutorial) are not yet ready.
2020-10-08 15:09:40 -07:00
Guido van Rossum 0c87b5a018
PEP 634, PEP 635, PEP 636: Split PEP 622 in three parts (#1598) 2020-10-01 17:04:25 -07:00