Commit Graph

18 Commits

Author SHA1 Message Date
Hugo van Kemenade 3a792e4a1d
PEP 642: Fix footnotes (#2718) 2022-07-20 14:47:57 -07:00
Jean Abou-Samra 5673bc4737
PEP 642: update status (#2547)
PEP 642, "Explicit Pattern Syntax for Structural Pattern Matching",
has been rejected.
2022-04-23 17:50:19 -07:00
Adam Turner b0329c31b3
Several PEPs: Normalise `Post-History` (#2375) 2022-03-09 16:04:44 +00:00
Adam Turner 42f88f1ce2
Display list names in Resolution and Discussions-To headers (#2361) 2022-02-27 14:46:36 -08:00
CAM Gerlach e43f567e93
Upgrade lint infra & add a few more conservative built-in checks (#2286) 2022-01-31 18:49:58 -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
Dominic Davis-Foster 5cedff4008
Remove additional backticks from inline code (#2033) 2021-07-14 11:01:22 -07:00
Hugo van Kemenade a2890cf4bc
PEP 621, 635, 637, 639, 642, 644, 645, 647, 650: Fix single backticks (#1797) 2021-02-05 08:09:26 -08:00
Marti Raudsepp 9b64c6ea75
Various typo/grammar/style fixes (#1789)
Changes detected by Topy (https://github.com/intgr/topy), all changes
verified by hand, false positives have been omitted.

These range from straight-out misspellings to debatable hyphen placement.
The hyphen changes are supported by grammar manuals of style.
2021-02-03 06:06:23 -08:00
Nick Coghlan 84b1972292
PEP 642 v3: Explicit pattern matching syntax (#1756)
* requires that all uses of bare names be qualified with the user's intent
* ensures that all name binding operations in patterns use the as keyword
* drops alignment with iterable unpacking syntax (always requires square brackets)
* drops alignment with class instantiation syntax (defines a new dedicated instance attribute matching syntax instead)
2021-01-03 23:45:20 +10:00
Nick Coghlan ed214e8955
PEP 642: Additional edits for 2nd posting (#1709)
* Switch to `__`` as the proposed wildcard marker
* OR patterns also need a disambiguating space before `==`
* Misc wording tweaks and other edits
2020-11-08 15:52:50 +10:00
Nick Coghlan 698d027ff0
PEP 642: Accept most of Steven D'Aprano's counter-proposal (#1708)
* Equality prefix changes from '?' to '=='
* Identity prefix changes from '?is" to 'is'
* Wildcard marker reverts to '_'
* Syntactic shorthands from PEP 634 are mostly kept,
  but only as syntactic sugar for the explicit forms
* AST changes allow most match-specific code to be
  dropped from the compiler
* Add the planned post date for this version
2020-11-07 19:59:40 +10:00
Nick Coghlan e772923bb0
PEP 642: Prepare for initial publication (#1698)
* Set initial post date
* Remove most of the caveats on the reference implementation
  (the PEP 634 test cases have been adjusted as necessary to
  pass, and new PEP 642 specific test cases added)
* Additional subsection in Deferred Ideas for negated constraints
* Add notes on PEP 635's concerns about potential semantic confusion
  between assignment targets and pattern matching
* Assorted final pre-publication tweaks
2020-10-31 16:14:04 +10:00
Nick Coghlan d253b702a4
PEP 642: Add identity constraints (#1696)
* add explicit syntax for identity constraints
* reject literal patterns (with rationale)
* reorder rejected ideas to put unpublished ideas last
* add containment constraints as a deferred idea
* update some details based on draft implementation status
* misc ReST formatting fixes and other text fixes
2020-10-30 00:40:48 +10:00
Nick Coghlan 0265bd00d5
PEP 642: Use correct terminology for new PEG parser (#1687)
Also links to the WIP reference implementation.
2020-10-26 23:40:26 +10:00
Nick Coghlan 732d8ff3a9
PEP 642: Add notes on reference implementation status (#1686) 2020-10-26 21:36:21 +10:00
Nick Coghlan 5e04c595b4
PEP 642: Constraint Pattern Syntax for Structural Pattern Matching (#1685)
A counter-proposal that mostly endorses PEP 634, but
proposes an explicit marker prefix based alternative to
PEP 634's approach where attribute lookups are
processed as value constraints while simple names
are capture patterns.
2020-10-25 22:28:40 +10:00