Commit Graph

8668 Commits

Author SHA1 Message Date
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
Guido van Rossum 8fd28e1e94 PEP 622: Clarifications that came up on python-dev
- State that `case` is also a soft keyword
- Triple-quoted strings are supported
- Clarify that `__match__` must be a static or class method returning an object or None
- Add two TODOs
- Fix line of dashes
2020-06-23 17:36:54 -07:00
Brandt Bucher 77462fe146
Accepted -> Final (#1458) 2020-06-23 17:11:54 -07:00
Ethan Furman 9a895d7dce
PEP 622: minor word additions/changes (#1453) 2020-06-23 15:20:24 -07:00
Jürgen Gmach 64b943aaf4
Fix typo (#1456) 2020-06-23 12:38:21 -07:00
Jürgen Gmach d2491d3c2d
Fix typo (#1454) 2020-06-23 12:38:03 -07:00
Petr Viktorin 8ebab5d5f8
PEP 573: Mark as final (#1449)
API for module state access from C extension methods has been implemented in Python 3.9.
2020-06-23 12:37:46 -07:00
Jürgen Gmach 070bee535f
Fix typo (#1455) 2020-06-24 05:21:43 +10:00
Oliver Bestwalter 29ddc84b4d
PEP 622: minor typo and grammar fixes (#1452)
M
2020-06-23 11:03:40 -07:00
Guido van Rossum 771b2a8db0
PEP 622: Structural Pattern Matching (Bucher, Kohn, Levkivskyi, GvR, Talin) (#1451) 2020-06-23 08:27:36 -07:00
Inada Naoki c536c5f971
PEP 597: Minor edit (#1448) 2020-06-23 10:35:56 +09:00
Brett Cannon 977f841a11
Specify where to send discussions for PEP 621 (#1447) 2020-06-22 14:58:41 -07:00
Brett Cannon 88a5ace0fb
Introduce PEP 621: Storing project metadata in pyproject.toml (#1446) 2020-06-22 14:38:24 -07:00