Commit Graph

9096 Commits

Author SHA1 Message Date
Matthew Rahtz e3b65e6b5b
PEP 646: Add Stephan's endorsement to Acknowledgements section (#1915) 2021-04-07 12:05:53 -07:00
Ken Jin 214e8321d0
PEP 636: Convert __match_args__ to tuple (#1914) 2021-04-06 08:37:47 -07:00
Jelle Zijlstra 6bfe26c51c
CODEOWNERS: fix Pablo's name for PEP 619 (#1913) 2021-04-06 06:57:01 -07:00
Pablo Galindo 935691d8ca Update the list of PEPs for Python 3.10 2021-04-06 12:38:20 +01:00
Pablo Galindo de7622d2ff Update the date for Python3.10.0a7 2021-04-06 12:37:17 +01:00
Tzu-ping Chung af8e16c05c
PEP 656: Minor clarification on relation to PEP 600 (#1911) 2021-04-05 16:17:39 -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
Łukasz Langa 0ded16b91e
[pep-0596] Include 3.9.4 ABI compat hotfix 2021-04-04 20:45:18 +02:00
Irit Katriel 6d94d73dfc
PEP-654: fix bug in leaf_generator example (#1910) 2021-04-04 08:26:04 -07:00
Mikhail Golubev 9fadf9cf0a
PEP 619: Update the list of PEPs included in 3.10 (GH-1907) 2021-04-04 13:46:38 +01:00
CAM Gerlach 50913ae2b3
PEP 597: Apply grammar, syntax and polish fixes, and clarify phrasing and terminology (#1887)
* PEP 597: Apply streightforward grammar and syntax fixes

* PEP 597: Copyedit prose for clarity, polish and to avoid repetition

* PEP 597: Use accurate terminology for options, params and arguments

* PEP 597: Add statements several places to clarify unclear meaning

* PEP 597: Revise docstring and warning text in text_encoding function

* PEP 597: Revise and clarify points based on author feedback

Co-authored-by: Inada Naoki <songofacandy@gmail.com>

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-04-03 19:29:50 -07:00
Brett Cannon e7698a7dbe
Add CODEOWNERS (#1892) 2021-04-03 19:19:26 -07:00
Łukasz Langa accc15934a
[pep-0569][pep-0596] Put actual dates for 3.8.9 and 3.9.3 2021-04-02 19:41:59 +02:00
Zachary Ware 566ece20d4 Mark binary files as binary in .gitattributes 2021-04-01 18:23:34 -05:00
Matthew Rahtz 701678f4d7
PEP 646: Add note of alternatives that exist (#1884) 2021-03-31 19:43:11 -07:00
Matthew Rahtz 47cb40ea58
PEP 646: Be more explicit about grammar changes needed (#1880) 2021-03-31 10:36:09 -07:00
Irit Katriel a841aeeb77
PEP-654: state that exceptions in a group are handled independently of each other (#1903) 2021-03-31 10:07:19 -07:00
Mark Shannon c029c02e36
PEP 653: Fix example. Use get(key, sentinel) instead of __getitem__(key) for mappings. (#1902) 2021-03-30 23:30:43 +01:00
Mark Shannon 0a0e7a3045
PEP 653: Split __match_kind__ into __match_container__ and __match_class__ (#1901) 2021-03-30 11:47:14 +01:00
Irit Katriel 31e30aebe1
PEP-654: clarify that ExceptionGroup is not trivial to implement correctly (#1894) 2021-03-27 15:16:43 -07:00
Mark Shannon 59b39a6dd0
PEP 653: Delete out-of-date note and correct tests in mapping pattern translations. (#1895) 2021-03-27 18:17:04 +00:00
Mark Shannon 3686181865
PEP 653: Remove MATCH_POSITIONAL and make semantics for MATCH_DEFAULT near identical to PEP 634. (#1893)
* Use class in pattern for matching, rather than subject.

* Remove temporary dict when matching mapping patterns.

* Remove MATCH_POSITIONAL.
2021-03-27 12:14:48 +00:00
Guilhem Saurel be1c166f4b
PEP 636: add missing @dataclass (#1879) 2021-03-23 11:26:03 -07:00
Jelle Zijlstra bd6beb5316
PEP 636: fix typo (#1891)
This was brought up by codeofdusk@gmail.com on the python-dev list.
2021-03-23 11:14:13 -07:00
CAM Gerlach d548fdfb61
Lint: Validate PEP fields against PEP 12 (#1890) 2021-03-23 07:55:26 -07:00
CAM Gerlach e183c197e6
PEP 12: Make date format in template match prose, and mark Python-Version as optional (#1889) 2021-03-22 14:00:22 -07:00
CAM Gerlach e6fb0d8ca6
Validate PEP created dates and update linters (#1886)
* Check created date exists & matches format, and fix non-conforming

* Automatically fix mixed EoLs on checkin and in one PEP

* Add rst-directive-colons check, fix issue it found and refine regex
2021-03-22 12:29:08 -07:00
Brett Cannon 6468255679
Reject PEP 637 (#1888) 2021-03-22 12:01:32 -07:00
Dong-hee Na a94311f0d8
PEP-597: Update status as accepted (#1885) 2021-03-21 15:55:10 -07:00
Irit Katriel 60f2621456
PEP-654: add post-history date (#1883) 2021-03-20 12:39:19 -07:00
Tzu-ping Chung e592c80c03
Also replace dots to match PEPs 425 and 427 (#1882) 2021-03-20 08:25:28 -07:00
Irit Katriel 021015be1f
PEP-654: implement new formatting in traceback.py. Fix a whitespace in c traceback (#1878) 2021-03-20 08:20:09 -07:00
Matthew Rahtz 89cb6aa8b9
PEP 646: Make explicit some more considerations of the motivation (#1881) 2021-03-20 08:07:04 -07:00
Tzu-ping Chung f68daf1984
PEP 656: Clarification on platform definition and musl detection (#1877) 2021-03-19 14:24:02 -07:00
Irit Katriel e31aab38ed
PEP-654: allow subclassing of exception groups (#1872) 2021-03-18 09:56:49 -07:00
Christian Heimes 96c1a37657
PEP 644: OpenSSL 1.1.1, CI proviers, Debian, SHA-3 (GH-1875) 2021-03-17 20:18:59 +01:00
Tzu-ping Chung 9ed544f00a
PEP 656: Platform Tag for Linux Distributions Using Musl (#1876) 2021-03-17 11:00:21 -07:00
Mark Shannon 54a16d60ef
Don't special case named tuples. The default behavior is fine. (#1874) 2021-03-16 11:15:21 +00:00
Irit Katriel 31d814345e
PEP-654: errors --> exceptions (#1871) 2021-03-15 13:17:05 -07:00
Batuhan Taskaya a49056a590
PEP 601: remove email due to lexer bug (#1870) 2021-03-12 22:40:40 +03:00
Batuhan Taskaya bbda897df1
PEP 601: fix lexing 2021-03-12 22:31:42 +03:00
Mark Shannon 3cc86339d2
PEP 653: Change semantics to be closer to PEP 634, while keeping the important features of PEP 653. (#1868)
* Change name of `MATCH_CLASS` to `MATCH_POSITIONAL`.
* Drop `__attributes__` and use `__match_args__` instead.
  * For `MATCH_DEFAULT`, `__match_args__` acts a map from positions to names.
   * For `MATCH_POSITIONAL`, `__match_args__` acts a map from names to positions.
* Change semantics of `MATCH_DEFAULT` when match class patterns to those of PEP 634.
* Update translations.
* Further expand examples
2021-03-12 18:01:08 +00:00
Sumana Harihareswara 5451f7963c
PEP 480: Fix status, author, discuss, reference (#1693) 2021-03-12 11:38:43 -05:00
Irit Katriel d4d4fe7b6f
PEP 654: Use C traceback for some examples (#1866) 2021-03-11 12:52:05 -08:00
Mark Shannon 2aec45c8b8
PEP 653: Rephrase translations in terms of failure, rather than success, to make them easier to compose. (#1865) 2021-03-10 15:22:07 +00:00
Victor Stinner c91e284b01
PEP 651 rejected by the SC (#1864) 2021-03-09 14:03:20 +00:00
Thomas Kluyver 9caeab3687
PEP 621: mention that '{name} <{email}>' may need quoting (#1861) 2021-03-08 12:58:17 -08:00
Irit Katriel cf87703454
PEP 654: add to the rejected ideas section, following public discussion (#1863) 2021-03-08 09:23:30 -08:00
Matthew Rahtz 4506987f28
PEP 646: Make some final final readability improvements (#1862) 2021-03-08 07:16:27 -08:00