Commit Graph

16 Commits

Author SHA1 Message Date
Jelle Zijlstra 83b976da18
Add Typing Topic (#2670)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-06 17:36:39 -07:00
Jelle Zijlstra cc5c674b51
PEP 677 was rejected (#2321) 2022-02-12 01:42:11 +00:00
Adam Turner 113e490701
Several PEPs: Use explicit `:pep:` and `:rfc:` roles (#2209) 2022-01-21 11:03:51 +00:00
Steven Troxler 4a3a9932cb
PEP 677: Runtime Behavior Specification (#2237)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-01-18 10:34:53 -08:00
Tushar Sadhwani 9c8b47c102
Fix function signatures in PEP 677 (#2243)
The `flat_map` function is passing the function first in its calls, so the definition should reflect the same.
2022-01-17 09:43:14 -08:00
Steven Troxler bb0bf67c26
PEP 677: fix typo in example (#2236) 2022-01-13 07:22:30 -08:00
Steven Troxler 38c78b0db4
PEP 667: Format the flat_map example consistently (#2230) 2022-01-12 11:20:28 -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
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
Shantanu ace871d870
Various PEPs: fix typos (GH-2211)
Co-authored-by: hauntsaninja <>
2022-01-03 21:01:23 -08:00
Steven Troxler 21f6df59ed
PEP 677: Clarify support for PEP 646 Unpack/* (#2198) 2021-12-18 10:55:56 -08:00
Steven Troxler fc2e5d0106
PEP 677: Update the thanks section (#2196) 2021-12-16 09:14:56 -08: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