Commit Graph

9231 Commits

Author SHA1 Message Date
lukpueh c657731bba
PEP 458: update references to python-tuf repo (#2240)
In preparation for the 1.0.0** release of the TUF reference
implementation `python-tuf` documentation referenced in this PEP is
being moved. This patch updates the corresponding links in the PEP.

** See 059bfda391/docs/1.0.0-ANNOUNCEMENT.md

More specifically, the following link changes are performed:

- METADATA.md
  to: metadata format section in TUF spec
  Note: alternatively this could link to the new location of
  METADATA.md (see theupdateframework/python-tuf#1769), but the spec
  seems like a better resource

- TUTORIAL.md#repo-management
  to: new metadata API doc on readthedocs and new repo
  example/tutorial

- TUTORIAL.md#lazy-bin-walk
  to: new hashed bin delegation example/tutorial

- client implementation
  to: new client doc on readthedocs

Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
2022-01-14 13:14:13 -08:00
Matthew Rahtz 5cf65cf312
PEP 646: Clarify indexing assignment (#2241) 2022-01-14 09:26:06 -08:00
Mario Corchero 961bdece5e
Mark PEP648 are rejected (#2235) 2022-01-13 12:46:41 -08:00
Steven Troxler bb0bf67c26
PEP 677: fix typo in example (#2236) 2022-01-13 07:22:30 -08:00
CAM Gerlach 8513edec8d
PEP 680: Format rst/PEP and copyedit for grammar, clarity & phrasing (#2233)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
2022-01-13 06:25:58 -08:00
Nipunn Koorapati 3ec824affd
PEP 613: Loosen class scope restriction of explicit TypeAlias (#2154)
Per discussion on typing-sig
https://mail.python.org/archives/list/typing-sig@python.org/thread/CGOO7GPPECGMLFDUDXSSXTRADI4BXYCS/

Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-01-12 13:28:17 -08:00
Pradeep Kumar 4d55ea96be
PEP 673: Add Post-History. (#2232) 2022-01-12 13:07:51 -08:00
Pradeep Kumar 36ed9512e9
PEP 673: Mention user requests for the feature. (#2231) 2022-01-12 12:28:09 -08:00
Steven Troxler 38c78b0db4
PEP 667: Format the flat_map example consistently (#2230) 2022-01-12 11:20:28 -08:00
Shantanu 6714cfed8a
PEP 680: link discuss post, minor edits (#2226)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-01-12 11:57:51 +01:00
CAM Gerlach 57c9a36dca
Fix refs section removal breaking external links on Sphinx build too (#2229) 2022-01-11 18:37:31 -08:00
CAM Gerlach c33b7248c1
Set low priority for rm-ing refs section so refs still resolve correctly (#2227) 2022-01-11 16:45:43 -08:00
Brett Cannon 88c14e061d Reject PEP 665 2022-01-11 16:39:08 -08:00
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