Commit Graph

8530 Commits

Author SHA1 Message Date
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
Pablo Galindo 561593f1ff
PEP 617: Fix typo (#1496) 2020-07-05 11:56:20 +10:00
Victor Stinner 95ac2ff27f
Rephrase the PEP 623 (#1492)
* Rephrase the PEP 623

* Add Discussion section and bpo links

* Update pep-0623.rst

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2020-07-04 23:12:10 +02: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
Yuki Nihei f9ba5a955c
Add missing parentheses (#1486) 2020-07-01 10:58:32 +10:00
Brett Cannon 4c5a0d0203
Re-introduce 'Maintainers' (#1485) 2020-06-30 17:39:08 -07:00
Łukasz Langa 47fa1fb501
[pep-0569] [pep-0596] [pep-0619] Update Lifespan descriptions
The lifespan descriptions haven't been updated after PEP 602 has been approved.
This is now fixed. Notable changes:

- describe that the next bugfix release is not *right* after the next major
  version is released

- bugfix releases aren't made every month for 12 months but every two months
  for 18 months
2020-06-30 19:31:06 +02:00
Łukasz Langa 8c57805f1c
[pep-0569] Actual date for 3.8.4rc1, more expected dates 2020-06-30 19:27:23 +02:00
Nick Coghlan 1f1b67516a
PEP 558: Postpone to 3.10 (#1364)
Leaving as Draft as I'm still intending to work on it in the coming
months, it just wasn't ready in time for the 3.9 beta 1
deadline.
2020-06-30 22:21:31 +10:00
Brett Cannon 7e4d2545a0
PEP 621: clearly specify that metadata specified is static, but it's all optional (#1481) 2020-06-29 15:40:46 -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
Brett Cannon fbd23d76b6
PEP 621: Clearly specify that PEP 621 is not meant to be read from an sdist (#1474)
Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
Co-authored-by: Paul Ganssle <p.ganssle@gmail.com>
2020-06-28 15:40:42 -07:00
Ned Deily 4575b0105d
3.7.8 and 3.6.11 finals 2020-06-28 09:29:04 -04: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
Dustin Ingram c49bcbb1a0
PEP 609: Add Sumana as author (#1471) 2020-06-26 16:09:19 -07:00
Keara Berlin 0c6427dcec
PEP 8: Change requirement to adhere to Standard English (#1470)
Instead of requiring that comments be written in Strunk & White Standard English, require instead that English-language comments be clear and easily understandable by other English speakers. This accomplishes the same goal without upholding relics of white supremacy. Many native English speakers do not use Standard English as their native dialect, so requiring conformation to Standard English centers whiteness in an inappropriate and unnecessary way, and can alienate and put up barriers for people of color and those whose native dialect of English is not Standard English. This change is a simple way to correct that while maintaining the original intent of the requirement.
2020-06-26 15:15:32 -07:00
Brett Cannon 1fa2817f5f
PEP 621: Try to simplify the motivation section (#1469) 2020-06-26 11:12:38 -07:00
Brandt Bucher a973470384
PEP 622: Update Appendix A Grammar (#1466) 2020-06-25 20:52:27 -07:00
Mark Mendoza d32dc02bde
PEP 612: Updates from typing-sig discussions (#1424) 2020-06-25 20:47:44 -07:00
Victor Stinner b617b14c01
PEP 623: Set the BDFL-Delegate (#1468) 2020-06-26 08:02:01 +09:00
Brett Cannon cccbc3256c
PEP 621: Clarify points brought up from public consultation (#1465) 2020-06-25 12:08:57 -07:00
Barry Warsaw 8c42fb4697
Withdraw PEP 543 and PEP 595 (#1467) 2020-06-25 10:24:10 -07:00
Inada Naoki 9ea076fbfb
PEP 623: Remove wstr from Unicode object (#1462) 2020-06-25 20:16:25 +09: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
Guido van Rossum a39035a22e PEP 622: Don't use "ADT" for "algebraic data types"
ADT already means Abstract Data Types (a different concept).
2020-06-24 18:18:00 -07:00
Guido van Rossum 33788eb974 PEP 622: Explain why * and ... don't make good wildcards
(And hint that ? is a little better but still worse than _.)
2020-06-24 17:39:22 -07:00
Guido van Rossum 8f43d3ef64 PEP 622: Clarify the status of True, False and None as literals 2020-06-24 17:39:14 -07:00
Guido van Rossum 1560745bdc PEP 622: Show Point(x=1, y=2) in class pattern section 2020-06-24 17:39:04 -07:00
Pradyun Gedam acffe50fdf
PEP 609: Clarify expectations around PEP sponsors (#1425) 2020-06-24 17:25:31 -07:00
Miroslav Šedivý a4a3b8f1dc
PEP 622: Fix Typos (#1457) 2020-06-24 17:25:13 -07:00
Brett Cannon 20714117d2
Mention that C compiler warnings are acceptable notice for removal (#1464) 2020-06-24 16:42:48 -07:00
Steve Dower d76d3d41bc
PEP 551: Withdrawn (#1299) 2020-06-24 18:15:46 +01:00
Guido van Rossum 410ba6dd48 PEP 622: drop restriction on ._ an _.a 2020-06-24 07:46:54 -07:00
Pradyun Gedam 30592da944
PEP 621: Cosmetic updates (#1459)
A typo fix, and change email in example to a functional one.
2020-06-23 22:25:03 -07:00
Swastik Baranwal 5d2dc3fb23
PEP 622: fix typo (#1460) 2020-06-23 22:15:47 -07:00