Commit Graph

9238 Commits

Author SHA1 Message Date
Steven Troxler fc2e5d0106
PEP 677: Update the thanks section (#2196) 2021-12-16 09:14:56 -08:00
Pradeep Kumar 9c60e96f0f
PEP 673: forbid Self in type aliases. (#2194)
Thanks to Eric Traut who tested all the code examples in Pyright and
raised implementation concerns about ``Self`` type in aliases.

I ran into implementation issues in Pyre too. This is because Pyre
preprocesses things like ``Self`` in an early phase and does alias
resolution in a later phase. Mixing the two would lead to a lot of
hacks.
2021-12-16 06:41:11 -08:00
Ee Durbin b999554240
PEP-8103: Results (#2195) 2021-12-16 07:12:18 -05:00
Steven Troxler c8a66e38e6
PEP 677: Readability and organizational edits (#2193)
* Address Guido's comments from initial PR

* Update functions-as-types based on Pradeep's feedback

* Fix some markup, address comments on endpoint example

* Rearrange Motivation and Rationale

* Move the language comparison subsection to Rational

* Fix more markup errors

* Rework "Motivation" section again

Going with Pradeep's suggested order:
- untyped example
- correct types
- partially-typed code
- our proposal

* Fix more lint errors

* Add a section highlighting a concern about -> readability

* Update the add/wrap/flatmap example

* Wording change suggested by AlexWaygood

* Add missing return annotation

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

* Break up long sentence

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>

* Break up long sentence (thanks Jelle)

* Reword awkward sentence (thanks Pradeep)

* Rearrange paragraphs in Motivation

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-12-15 21:23:34 -08:00
Steven Troxler 581d21d947
PEP 677: Callable Type Syntax (#2187)
Ported from a google doc at
https://docs.google.com/document/d/16UmBItZWIzKZK3ZTpDKH8vazNZ817E4UqKmPtebO4jQ/edit

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Tuomas Suutari <tuomas@nepnep.net>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
2021-12-13 20:31:31 -08:00
Matthew Rahtz 27b476d1c6
PEP 646: Explain the results of the new grammar/compiler change (#2189) 2021-12-13 13:22:29 -08:00
Paul Moore 641e39fa70
PEP 643 - Mark as Final (GH-2191) 2021-12-13 19:17:45 +00:00
Julin S 621208878f
Fix typo (#2192)
Fix a typo.
2021-12-13 09:15:18 -08:00
Mark Shannon 773ff9e1c7
PEP 669: Add an enum and namespace to the interface. (#2186) 2021-12-10 13:17:58 +00:00
Ram Rachum 83cfd2f7d3
Change unicode quotes with ASCII quotes (#2188) 2021-12-09 15:37:35 +02:00
bobozi-cmd 9dade42dbe
PEP 7: Mention PyAPI_DATA() macro (#2184) 2021-12-08 16:41:17 -08:00
Pablo Galindo 4f9188c572
PEP 664: Update date for Python3.11.0a2 and Python.3.11.0a3 2021-12-08 23:59:34 +00:00
Pradeep Kumar f1c02245cc
[PEP 646] Allow cleanly substituting any tuple type for a TypeVarTuple (#2162)
A number of cleanups also happened, improving readability of various sections and examples, but the only *semantic* change here is that TypeVarTuples can now be substituted with unbounded tuples (previously that was explicitly forbidden, but we convinced ourselves that there is no reason for that).
2021-12-08 14:07:27 -08:00
Mark Shannon 23307c1239
PEP 669: Low Impact Monitoring for CPython (#2183) 2021-12-07 15:09:44 +00:00
Hugo van Kemenade 268b0c1d36
PEP 619: Python 3.10.1 was released on 2021-12-06 (#2185) 2021-12-07 10:03:52 +00:00
Brett Cannon 8b43411c73 PEP 12: fix reST directive error 2021-12-06 16:09:16 -08:00
Brett Cannon 885552cec7 PEP 12: ignore the template file when building
Also ignore `.venv` as a common virtual environment name.
2021-12-06 15:56:51 -08:00
Brett Cannon cd1e507dd8
PEP 12: create a complete PEP template (#2181) 2021-12-06 15:38:13 -08:00
Mark Shannon 91b9f68579
PEP 667: Update to account for changes to PEP 558 and feedback from Nick. (#2180)
* Remove incorrect implementation of pop(). There is an implementation in collections.MutableMapping so it is not needed. Add implementation of __contains__.

* Remove outdated section on differences with PEP 558.
2021-12-06 10:11:27 +00:00
Hugo van Kemenade e47f9242f8
Rename master to main (#2178) 2021-12-03 06:59:24 -08:00
Hugo van Kemenade e5c7822dcd
PEPs 1, 426, 512, 545, 8001, 8002, 8016: rename master to main (#2179) 2021-12-03 12:29:10 +01:00
Adam Turner 54e9bd01a3
PEP 676: PEP Infrastructure Process (#2173) 2021-12-02 11:57:42 -08:00
Ee Durbin b6e3845f4c
Update to deploy from main (#2176) 2021-12-02 13:29:46 -05:00
Victor Stinner ce2ed3eb88
PEP 674: Sam's endorsment for the nogil section (#2175) 2021-12-02 17:57:02 +01:00
Victor Stinner c6df2854f9
PEP 674: Fix typo (#2174) 2021-12-02 15:54:23 +01:00
Victor Stinner 8f76cc83ea
PEP 674: fix typo (#2172) 2021-12-01 15:54:08 -08:00
Chris Angelico 2f8088c384 PEP 671: Document QUERY_DEREF among implementation details 2021-12-02 09:57:15 +11:00
Pradeep Kumar 21f6993114
PEP 675: Arbitrary literal strings (#2167) 2021-12-01 09:57:41 -08:00
Tim Felgentreff 7d8c2a104a
PEP 674: GraalPython C API emulation rationale (#2171) 2021-12-01 18:33:11 +01:00
Victor Stinner 6caef0d18c
PEP 674: HPy (#2169) 2021-12-01 17:39:49 +01:00
Victor Stinner 23c90120e3
PEP 674: Backward compatibility (#2170) 2021-12-01 17:05:22 +01:00
Chris Angelico 45cf9e5250 PEP 671: Quick pass over wording and settle some things from discussion 2021-12-01 17:04:57 +11:00
Victor Stinner 745bfda492
PEP 674: fix creation date; add myself to CODEOWNERS (#2168) 2021-12-01 00:30:08 +01:00
Victor Stinner 509154a4d5
PEP 674: Disallow using macros as l-value (#2166) 2021-11-30 19:12:11 +01:00
Victor Stinner 3388a3753c
PEP 670: Link to python-dev discussion (#2165) 2021-11-29 17:31:40 +01:00
Brett Cannon 6ef86af2ae PEP 665: resolve the (final) open issue around sdists 2021-11-25 15:03:28 -08:00
Victor Stinner 152fe41cf2
PEP 670: more examples (#2163)
* Elaborate the Abstract
* Add "Misnesting" example
* The return value has already been removed in the public C API macros
* Clarify that converting Py_TYPE() macro was an incompatible change
2021-11-25 12:31:48 +01:00
Victor Stinner 907f8e9aed
PEP 670: LTO+PGO benchmark (#2161)
* Don't convert l-value macros
* Add "Examples of duplication of side effects" section
* Remove the gcc -O0 versus gcc -Og benchmark: it's not relevent for
  this PEP.
2021-11-25 10:22:58 +01:00
Erlend Egeberg Aasland c1fda6822b
PEP 670 amendments (#2157) 2021-11-24 19:23:36 +01:00
Jelle Zijlstra 2263e93426
PEP 646: fix typo (#2160) 2021-11-24 08:48:34 -08:00
Brett Cannon 9638809de4 Fix Jelle's username in CODEOWNERS 2021-11-23 17:13:24 -08:00
Ofek Lev 58629bc305
Support code highlighting (#1577) 2021-11-23 15:30:48 -08:00
Victor Stinner 570cea56c2
PEP 670: Add benchmarks (#2156)
* Add benchmarks.
* Elaborate the Debug Build section
2021-11-23 17:30:43 +01:00
Brett Cannon 855dc06e8a PEP 665: fix a linting issue 2021-11-22 16:46:32 -08:00
Brett Cannon 6bbde299e6 PEP 665: record Poetry's views on the PEP 2021-11-22 16:39:56 -08:00
Brett Cannon e4d35d7f32 PEP 665: point out why relying on wheels is a good thing 2021-11-19 15:28:31 -08:00
Ethan Furman c088d64ecb PEP 663: Rejected 2021-11-17 22:02:37 -08:00
Brett Cannon 4564234448 PEP 665: spell out that if the PEP doesn't say something then you can do what you want 2021-11-16 15:28:04 -08:00
Brett Cannon d6c4aa7a8e PEP 665: make using PEP 621 as input a rejected idea 2021-11-16 11:32:58 -08:00
Ee Durbin 1d3deac884
PEP 8103: Update with nomination results and initial Voter Roll (#2152)
* PEP 8103: Update with nomination results and initial Voter Roll

* correct voter-roll due to 2b51c0ba6c
2021-11-16 10:03:46 -05:00