Commit Graph

9218 Commits

Author SHA1 Message Date
Steven Troxler 218e2ccaec
PEP 677: Minor wording and formatting fixes. (#2225)
We're getting ready for a final request for comments to python-dev,
so I did one more pass through the PEP to catch remaining readability
issues (I was especially looking for things easier to see on the actual
PEP page with formatting than the rst doc):
- found an incorrectly formatted hyperlink
- changed some sentences with ambiguous pronouns
- broke up a couple of sentences that seemed too long
- tweaked a few places where the wording was okay but nonstandard
2022-01-11 10:18:50 -08:00
Steven Troxler 4a0c9779de
PEP 677: Add Discussions-To and Post-History headers (#2224)
* Add Discussions-To and Post-History headers

* Change Discussions-To to python-dev
2022-01-10 22:27:58 -08:00
Steven Troxler 5cb9636c4c
PEP 677: Include more rejected alternatives (#2219)
* Add more rejected alternatives

- Rust-style syntax
- Forced outer parentheses
- Improving readability of existing callable type

* Add discussion of alternative | precedence

* Add blank lines for bullet lists

* Fixes based on initial review

* More tweaks from review

* More updates based on review
2022-01-10 21:46:13 -08:00
Taneli Hukkinen 79c2ad8b9f
PEP 680: Address merwok's review (#2223) 2022-01-10 16:45:09 -08:00
Shantanu 5056f2a964
PEP 680: "tomllib" Support for parsing TOML in the Standard Library (#2218)
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2022-01-10 12:55:30 -08:00
Jelle Zijlstra 8b9859a142
Copyedits to PEP 679 (#2222)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-01-10 12:28:07 +00:00
Pablo Galindo Salgado 29ca7d7cd2
PEP 679: Change the discussions link (GH-2221) 2022-01-10 00:22:53 +00:00
Pablo Galindo Salgado 7de72523c9
PEP 679: Allow parentheses in assert statements (GH-2220) 2022-01-09 23:40:59 +00:00
Adam Turner 3d60b84e35
PEP 676: Implementation updates (#2208) 2022-01-09 10:07:03 -08:00
Adam Turner 19684a0787
PEP 676: Formatting and prose updates (#2207)
Co-authored-by: C.A.M. Gerlach <cam.gerlach@gerlach.cam>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-01-09 18:13:23 +02:00
Steven Troxler 557696d143
PEP 677: Use PEP 646 syntax when discussing unpack (#2216)
I'd intended to fix this based on feedback in an earlier PR, but missed it.
2022-01-07 21:34:32 -08:00
Gregory P. Smith 400d46e8c7
Ungender the volunteer pronoun in PEP-11. (#2214) 2022-01-05 23:28:10 -08:00
Nikita Sobolev efec849b43
Delete CODE_OF_CONDUCT.md (#2213) 2022-01-05 09:42:42 -08:00
Shantanu ace871d870
Various PEPs: fix typos (GH-2211)
Co-authored-by: hauntsaninja <>
2022-01-03 21:01:23 -08:00
Petr Viktorin 989a70412d
PEP 646: Fix code markup (#2210)
A code block was formatted as a quotation by mistake.
2022-01-03 08:22:47 -08:00
Ned Deily 58b93bdfdb
PEP 494: move 3.6 to end-of-life status. 2021-12-31 20:55:18 -05:00
Irit Katriel f2f542d544
PEP-654: clarify that BaseExceptionGroup is the factory function that… (GH-2203) 2021-12-27 21:51:08 +00:00
Anatoli Babenia b07248305b
440: Extend example to clarify 1.dev0 < 1.0.15 (#2108)
>>> from packaging.version import Version
    >>> Version("1.dev0") > Version("1.0.15")
    False
2021-12-23 16:24:41 +10:00
Nick Coghlan cb8b62e1d0
PEP 558: remove lingering mentions of the 'view' API (#2204) 2021-12-23 13:04:55 +10:00
Nick Coghlan dedc9d250e
PEP 558: Adopt Python level semantics from PEP 667 (#2124)
* fast locals proxy never assumes the value cache is already up to date
* operations become O(n) as required to avoid that assumption
* remove `*View()` APIs from proposal due to algorithmic complexity issue
* add Python pseudo-code to the PEP 667 comparison section
* reword PEP 667 comparison section to focus on the remaining differences
  in the C API proposal
2021-12-23 09:25:51 +10:00
Brett Cannon 107361803d PEP 665: link to a locker PoC 2021-12-22 11:13:35 -08:00
Zac Hatfield-Dodds 8c43285a06
PEP 678: Enriching Exceptions with Notes (#2201)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2021-12-22 08:13:01 -08:00
Brett Cannon 886624a3a5 PEP 665: fix reST error 2021-12-21 11:56:18 -08:00
Brett Cannon 991cc7a295 PEP 665: outline a potential transition plan 2021-12-20 17:00:33 -08:00
Brett Cannon 79cddd5639 PEP 665: address review feedback 2021-12-20 14:10:15 -08:00
Dimitri Papadopoulos Orfanos ec3ac5bf29
PEP 7: No need to call out in-line (//) comments twice (#2074)
It's already mentioned in a preceding bulleted sublist.
2021-12-20 12:52:55 -08:00
CAM Gerlach f82973df46
Don't auto-add inline links to ref section & rm if empty, per #2130 (#2155)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2021-12-18 15:23:14 -08:00
Steven Troxler 21f6df59ed
PEP 677: Clarify support for PEP 646 Unpack/* (#2198) 2021-12-18 10:55:56 -08:00
CAM Gerlach 80e009085f
PEP 639: Make requested additions and changes, add additional helpful info, reformat, update and copyedit (#2164)
* PEP 639: Reframe core metadata update as discrete proposal per PEP 643

* PEP 639: Clean up formatting, syntax, spelling, headers and lists

* PEP 639: Rewrite to reflect License-Expression field and depr process

* PEP 639: Update examples, current tools survey, links and more

* PEP 639: Add PEP 621, expand/move examples & reorganize/shorten headings

* PEP 639: Further specify and clarify license file handling

* PEP 639: Add additional ambigous classifiers and tool recommendations

* PEP 639: Rework PEP 621 keys, refine dynamic/globs & add rejected ideas

* PEP 639: Specify license path root & subdirs, & expand examples

* PEP 639: Add license_files dir, rejected ideas & sdist/wheel/installed

* PEP 639: Add PyPI validation of new fields for newly-uploaded files

* PEP 639: Add open isssue for back-filling & reject per-dist licenses

* PEP 639: Add User Scenarios to provide guidance for common use cases

* PEP 639: Update Abstract, Goals, Rationale, Compat. & other sections

* PEP 639: Add terminology section & use consistant, clear & correct terms

* PEP 639: Make refs inline per #2130, add links, fix others & refine text

* PEP 639: Copyedit and proofread for grammar, phrasing, clarity & tone

* PEP 639: Address reviewer and community feedback

* PEP 639: Add custom IDs issue & clarify rejected license key str value
2021-12-17 15:20:01 -08:00
Edward O 0e3c5cf71b
Typo in pep-0616 (removeprefix) 'Rejected' section (#2197) 2021-12-17 14:49:28 -08:00
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