Commit Graph

9072 Commits

Author SHA1 Message Date
Łukasz Langa 508dc12016
[pep-0596] Mark Python 3.9.5 as released 2021-05-03 19:01:00 +02:00
Łukasz Langa 0d3008cdbe
[pep-0569] Mark last regular bugfix release as done 2021-05-03 16:38:52 +02:00
Brandt Bucher b7e5a99aa0
PEP 634: Fix markup for sequence pattern note (GH-1940) 2021-04-29 15:08:57 -07:00
Mark Shannon c176458336
PEP 626: Update PyLineTable_InitAddressRange spec (#1939)
* Add length parameter to PyLineTable_InitAddressRange. Allows line tables that are not sentinel terminated and makes the extent of the line table explicit.

* Make opaque part of PyCodeAddressRange more explicitly opaque.
2021-04-28 08:15:40 -07:00
Sergey B Kirpichev 9d5ca8ff2c
PEP 3141: fix link for the Haskell numeric prelude (#1938) 2021-04-27 07:54:30 -07:00
Mark Shannon 6be779381a
PEP 634: Reword sequence and mapping patterns sections to be more robust (#1937)
The new language is more precise, and leaves the door open for more implementation options, by not seeming to require that the pattern implementation must import collections.abc.

The new language allows only using sys.modules if has already been imported (e.g. by peeking in sys.modules).

Also, for internal use of CPython, two new flags, `Py_TPFLAGS_SEQUENCE` and `Py_TPFLAGS_MAPPING` are introduced, which support recognizing built-in sequence and mapping types without importing collections.abc.
2021-04-26 07:10:51 -07:00
Brett Cannon 0328f275c9
PEP 467: drop a stranded marker 2021-04-24 16:27:43 -07:00
Irit Katriel 84fbb3ffb2
add acknowledgements (#1935) 2021-04-22 18:09:16 -07:00
Petr Viktorin efd8e7029e
Mark PEP 652 accepted & add a note from the SC and link to bpo (#1929) 2021-04-20 07:18:24 -07:00
Matthew Rahtz 5578160afa
PEP 646: Add some broader context (#1904)
These sections were requested in some feedback we got when talking to NumPy and JAX folks. OK, this does make an already-long PEP even longer, but I do think this context is important - especially for folks who don't have strong intuitions for how parametric typing works in Python.
2021-04-18 11:59:20 -07:00
Tzu-ping Chung 051b07cced
Accept PEP 656 (#1928) 2021-04-17 17:04:03 -07:00
Christian Heimes 3e0155e145
PEP 644: Added accepted mail and mark as final (GH-1927) 2021-04-17 11:46:03 +02:00
Brett Cannon 307b9cdf88
PEP 387: clarify how long a warning must be emitted before a change can be made 2021-04-16 15:21:47 -07:00
Barry Warsaw 84d76bc1cf
Formally reject PEP 396 2021-04-14 15:08:26 -07:00
Ethan Furman 9648b1b0b9 pep-467: update version info, correct status 2021-04-13 16:21:06 -07:00
Ethan Furman f62b99f456 467: update post history 2021-04-13 14:07:45 -07:00
Ethan Furman 28c4f3304f 467: update deprecation and memoryview statements 2021-04-13 14:03:39 -07:00
Jelle Zijlstra 69d0e87ccf
Fix CODEOWNERS (#1925) 2021-04-13 12:14:31 -07:00
Larry Hastings fdf2e08d7d Hopefully fix rendering errors for PEP 649. 2021-04-12 17:56:43 -07:00
Brett Cannon eeb90a84e4
Begin bisecting CODEOWNERS to try and figure out why it isn't working (#1921)
Part of #1920
2021-04-12 17:18:03 -07:00
Larry Hastings c11c646746 Updated PEP 649 to v2. 2021-04-12 06:27:13 -07:00
Mark Shannon 4134c46262
Simplifications of PEP 653: (#1919)
* Make 0 the defualt for __match_class__ and drop ability to not match class patterns

* Use equality not bitwise ands to check for matches

* Add to rejected and deferred sections, explaining the above
2021-04-12 12:17:50 +01:00
Ken Jin eda5cfd5d6
PEP 647: Update post history (#1917) 2021-04-10 10:31:16 -07:00
Guido van Rossum f2e40c42e0 PEP 647: Accepted 2021-04-10 10:08:55 -07:00
Antti Haapala b5846bfedd
f_lineno, not f_lineo. (#1918)
I noticed this because the typo even found its way to the [What's new listing in CPython](https://github.com/python/cpython/blame/master/Doc/whatsnew/3.10.rst#L176)
2021-04-10 20:44:31 +10:00
Stéphane Wirtel 15ee6f8487
PEP 624: Typo (#1916) 2021-04-09 16:06:30 +10:00
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