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
Adam Turner
113e490701
Several PEPs: Use explicit `:pep:` and `:rfc:` roles ( #2209 )
2022-01-21 11:03:51 +00:00
CAM Gerlach
d548fdfb61
Lint: Validate PEP fields against PEP 12 ( #1890 )
2021-03-23 07:55:26 -07:00
Brandt Bucher
f304c6f353
brandtbucher@gmail.com -> brandt@python.org (GH-1814)
2021-02-11 14:32:18 -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
Miroslav Šedivý
45fdc844dd
Typos: Remove repeated words ( #1726 )
2020-12-04 09:51:44 -08: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
Ram Rachum
fc8c265188
PEP 622: Fix typo ( #1584 )
2020-09-05 21:34:52 +10:00
Guido van Rossum
a995cd03fb
PEP 622: Proposed rewrite of Abstract and Overview (mostly) by @willingc ( #1573 )
...
Co-authored-by: Daniel F Moisset <dfmoisset@gmail.com>
2020-08-28 13:02:25 -07:00
Guido van Rossum
9e884d2d6e
PEP 622: Fix various nits reported by the SC
2020-08-24 17:49:35 -07:00
Guido van Rossum
6a7d6b831f
Note that we warn about `case foo: ... / case bar: ...`
2020-08-17 14:20:14 -07:00
Guido van Rossum
55caf0cbe2
PEP 622: Adopt a few clarifications (only) from #1564
2020-08-15 15:34:19 -07:00
Hugo van Kemenade
ba36cccc2d
Fix RST backticks ( #1554 )
2020-08-07 09:35:20 -07:00
Brandt Bucher
bfdfd74c5c
PEP 622: Fix Django example ( #1523 )
...
Closes https://github.com/gvanrossum/patma/issues/135
2020-07-14 09:04:45 -07:00
Guido van Rossum
a700156ab9
PEP 622: Update Acknowledgments
2020-07-09 17:47:06 -07:00
Guido van Rossum
1317e46695
PEP 622: Mention that many scripts don't distinguish case
...
Fixes #1518
2020-07-09 17:41:41 -07:00
Guido van Rossum
f43058cab2
Sub-patterns may be processed in parallel
...
Fixes #1517
2020-07-09 17:33:01 -07:00
Guido van Rossum
a2e4fc9aed
PEP 622: Add note to Django example
...
Fixes 510
2020-07-09 15:10:05 -07:00
Guido van Rossum
bf6e6ec5ba
PEP 622: clarify 'list of patterns' reference
...
Fixes #1511
2020-07-09 15:02:38 -07:00
Guido van Rossum
d56591331e
PEP 622: Rename 'Ambiguous Matches' section to 'Overlapping sub-patterns'
...
Closes #1514
2020-07-09 14:58:06 -07:00
Guido van Rossum
c8c872c512
PEP 622: Fix example in static checks
...
Fixes #1516
2020-07-09 14:51:09 -07:00
Ram Rachum
16b6744345
PEP 622: Fix typo ( #1509 )
2020-07-09 13:36:20 -07:00
Guido van Rossum
da849ee33c
PEP 622: Two small clarifications based on early python-dev feedback
...
- Emphasize that the capture pattern only allows a simple/single name.
- Add dropping of default "self" positional argument to version history
2020-07-08 13:02:37 -07:00
Talin
382f0dfc7d
PEP 622: Added rejected ideas section comparing with traditional OOP ( #1504 )
...
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2020-07-07 19:35:05 -07:00
Daniel F Moisset
26ac4b3d3e
PEP 622: Include overview to different patterns and summarised syntax ( #1501 )
...
Also some other improvements, and added Daniel as author (that was Guido's work).
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2020-07-07 16:00:55 -07:00
Daniel F Moisset
e43a11d86e
PEP 622: Why the match statement is the correct feature right now ( #1502 )
2020-07-07 14:32:08 -07:00
Daniel F Moisset
6f3434b750
PEP622: Be more explicit about side-effects ( #1503 )
2020-07-07 13:47:42 -07:00
Guido van Rossum
11c354d8a3
PEP 622: Brand-new introductory sections ( #1500 )
...
Daniel Moisset and I rewrote the Abstract and "Rationale and Goals"
sections and inserted a new Overview section in between.
Also:
* Added Acknowledgments and Version History sections
* Updated links to implementation and example code, added playground link
Co-authored-by: Daniel F Moisset <dfmoisset@gmail.com>
2020-07-07 10:32:01 -07:00
Brandt Bucher
f1de4f169d
PEP 622: Ditch leading dots for name loads ( #1499 )
...
Also rewrite related examples and strengthen some argumentation.
2020-07-06 16:37:45 -07:00
Talin
b893d2e02b
PEP 622: Change 'target' to 'subject' ( #1498 )
2020-07-05 21:29:52 -07:00
JimJJewett
058b126e7b
PEP 622: Sync explanation example; case 0 is now first ( #1495 )
2020-07-04 14:04:43 -07:00
Daniel F Moisset
60a15e8332
PEP 622: make the binding semantics explicit ( #1490 )
2020-07-02 16:11:05 -07:00
Daniel F Moisset
127fc3701e
PEP 622: Add exception semantics ( #1491 )
2020-07-02 14:47:45 -07:00
Guido van Rossum
2bedd36c45
PEP 622: Add argumentation against 'else' ( #1489 )
2020-07-01 22:46:42 -07:00
Guido van Rossum
045450aaf4
PEP 622: Strengthen the argument for _ as wildcard ( #1488 )
...
See https://github.com/gvanrossum/patma/issues/93#issuecomment-650723402
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2020-07-01 22:32:42 -07:00
Guido van Rossum
4b7f1fcd4c
PEP 622: Write up why we reject alternative spellings of OR patterns ( #1487 )
...
Much of this was cribbed from https://github.com/gvanrossum/patma/issues/93
2020-07-01 22:11:53 -07:00
Brandt Bucher
74c81defd0
PEP 622: Drop __match__ from the spec ( #1484 )
2020-07-01 08:37:47 -07:00
Talin
31d5ffe9ca
PEP 622: Re-wrote deferred ideas section ( #1483 )
...
The section that explains the decision to defer an extended
custom matching protocol has been transformed into a section
that defers custom matching altogether.
2020-07-01 07:57:00 -07:00
Guido van Rossum
2e8df86101
PEP 622: Rename 'named sub-pattern' to 'walrus pattern' ( #1482 )
2020-06-30 20:26:10 -07:00
Guido van Rossum
d3bcd15cd2
PEP 622: Rename name pattern to capture pattern ( #1479 )
...
Also make the section headings describing various types of patterns plural, e.g. "Capture patterns".
2020-06-29 12:11:20 -07:00
Brandt Bucher
5aec654f9e
PEP 622: Drop ImpossibleMatchError ( #1480 )
2020-06-29 11:54:42 -07:00
Guido van Rossum
d95ec4b557
Change definition of __match__ ( #1477 )
...
It should never raise if an attribute is missing.
Also fix one last mention of the exception for a single positional argument.
See https://github.com/gvanrossum/patma/issues/111#issuecomment-650874268
2020-06-29 09:32:21 -07:00
Guido van Rossum
430718e6a5
Fix link to deferred idea for __match__
2020-06-28 20:30:08 -07:00
Brandt Bucher
0146bb56f9
PEP 622: Remove type and complex from special cases ( #1475 )
2020-06-27 12:22:24 -07:00
Taine Zhao
4b5513942c
PEP 622: Change claim about Haskell ( #1473 )
...
fixes gvanrossum/patma#107
2020-06-27 12:05:22 -07:00
Brandt Bucher
a106177241
PEP 622: Updates from Python-Dev ( #1472 )
...
In particular __match_args__ is simplified and the default processing only applies to certain built-in types.
2020-06-26 17:55:59 -07:00
Brandt Bucher
a973470384
PEP 622: Update Appendix A Grammar ( #1466 )
2020-06-25 20:52:27 -07:00
Guido van Rossum
fa90054ead
Mention flat indentation 'match: expression'
2020-06-24 21:26:17 -07:00
Guido van Rossum
770d36cc01
PEP 622: Clarify even more strongly that True/False/None are keywords
2020-06-24 18:20:19 -07:00