Commit Graph

8068 Commits

Author SHA1 Message Date
Guido van Rossum bb83c95b19
PEP 586, PEP 589, PEP 591: Make Guido BDFL-Delegate of typing PEPs (#1001) 2019-04-17 13:45:01 -07:00
Barry Warsaw c1f8c85e6a
Christian has agreed to be the BDFL-Delegate 2019-04-17 12:15:36 -07:00
Michael Lee 9f34665cf1 PEP 586: Make backwards compatibility best-effort (#995)
This pull request relaxes PEP 586 so that type checkers are now expected
to maintain backwards compatibility on a best-effort basis, rather than
a mandatory basis.

It also rearranges the order in which information is presented: the
section now opens with and focuses on an example of what a too-disruptive
inference strategy would look like.
2019-04-17 10:53:13 -07:00
Vincent Poulailleau 44e0178891 typo: MAy -> May (#999) 2019-04-17 08:14:35 -07:00
Michael Lee 6d205a43fa PEP 586: Add section about Final (#996)
This commit adds a section discussion how Literal types interact with
Final from PEP 591, if both PEPs are accepted. In short, it states
that type checkers are expected to understand that assignment statements
of the form `var: Final = value` are a way of declaring `var` to
effectively be of type `Literal[value]` in certain cases.
2019-04-16 09:41:35 -07:00
Serhiy Storchaka ad7f2b2f6c Remove trailing spaces from many PEPs (#983) 2019-04-16 07:50:15 -07:00
Nick Coghlan 1b0e8221be
PEP 432: Update based on the extracted PEP 587 API (#965)
The overall PEP 432 design is still a work in progress,
but the parts that Victor extracted out to PEP 587 should
be pretty solid at this point.
2019-04-16 23:58:12 +10:00
Guido van Rossum 7a0b6e7ef0
PEP 586: Small wording changes from review (#993) 2019-04-15 19:03:35 -07:00
Michael J. Sullivan c4c4bd7b9c PEP 591: some minor cleanups (#994)
- Fix some typos
 - Clarify that @final can't be used on non-method functions
2019-04-15 16:57:52 -07:00
Guido van Rossum 5165c953e6
Minor typo/grammar/wording/markup fixes (#991) 2019-04-15 07:50:48 -07:00
Petr Viktorin bb386b9b89 PEP 590: Add "Vectorcall" and "fastcall" keywords (#984)
- Add "Vectorcall" to the PEP title to make it easier to reference
- Mention "fastcall" in the abstract, for people familiar with the term
2019-04-14 10:51:37 +01:00
Michael J. Sullivan f3b44fbe4d PEP 591: Adding a final qualifier to typing (#990) 2019-04-12 17:17:52 -07:00
Sebastian Rittau 696664643d PEP 484: Add @type_check_only (#858)
Per discussion in python/typing#597.
2019-04-12 15:31:37 -07:00
James Hamm 63821b0d12 PEP 581: Minor text edits (#981) 2019-04-11 14:04:09 -07:00
Eric Snow b7f089015a
PEP 554: Return a boolean from send_nowait() rather than raising an exception. (#987) 2019-04-10 16:56:41 -06:00
Steve Dower 7bd1bc2c9e
PEP 578: Add Post History (#986) 2019-04-10 14:10:00 -07:00
Steve Dower c633c2be56
PEP 578: Add clarifications around open_code() for non-code files (#985) 2019-04-10 11:46:20 -07:00
Bernát Gábor d6a43fb3f9 PEP 517: Improve wording on including setup.py in the source distribution (#856) 2019-04-10 14:53:29 +01:00
Mark Shannon 349b6d6b8b PEP 590: Clarify the use of PY_VECTORCALL_ARGUMENTS_OFFSET. (GH-980) 2019-04-10 13:22:42 +02:00
Huang Huang c8872842e8 Package all pep files. Fixes python/pythondotorg#1394 (#982) 2019-04-09 11:26:44 -05:00
Batuhan Taşkaya 921cacec26 semicolon instead of colon at function definition (#979) 2019-04-07 09:19:10 -07:00
Jeroen Demeyer 92f4dbdbf1 PEP 590: minor edits (#973) 2019-04-07 12:34:18 +01:00
Nick Coghlan ad9c99dd8d
PEP 534: Improve title and clarify proposal (#949)
The previous title gave the impression that this PEP was about
splitting the standard library into separately versioned pieces,
when it's actually a far more modest proposal to improve the
error messages that users receive when pieces are missing, as
well as to provide a standard library API to retrieve the full
list of expected standard library module names.

It also includes a number of other improvements that came up
during the PR review:

- explicitly limit metadata to top level modules
- be clear that private stdlib modules need to be listed
- provide more details on which modules would be optional
- use tkinter and idlelib as additional examples
- provide rationale for packaging modules being mandatory
- provide example error messages for missing submodules
- add subheadings to the design discussion section
- rename Open Questions to Deferred Ideas to avoid scope
  creep in the initial proposal
2019-04-07 17:45:54 +10:00
Frazer McLean 1dd991e900 PEP 440: regex should not permit Unicode [Nd] characters (#966)
Numeric components in version numbers are expected to be sequences
of ASCII digits, but the PEP didn't actually say that explicitly.

Omission picked up and the `is_canonical` regex in Appendix B corrected
by Frazer McLean.
2019-04-07 17:26:48 +10:00
Guido van Rossum f25f585af9
PEP 570: Demonstrate a corner case (#978)
The name of a positional-only parameter can occur in `**kwds`.
2019-04-06 14:43:10 -07:00
Guido van Rossum d3b0dfacba
PEP 570: Accept (#977)
Also fix various capitalization, style and markup nits found during review

(I'm still not 100% happy with the use of would vs. will everywhere,
but I declare it's good enough. Someone with a degree in English can
fix this up.)

(I also think that the section "After Separator Proposal" could use some editing, but this won't affect acceptance of the PEP.)
2019-04-05 15:09:18 -07:00
Carol Willing 1e2f409b47 PEP 570: Edit Sections and How to Teach (GH-975)
* Correct grammar and style.
* Update the "How to teach" section.
* Expand grammar specification.

Signed-off-by: Carol Willing <carolcode@willingconsulting.com>
2019-04-05 15:25:17 -04:00
jimbo1qaz 4b703079ff PEP 544: Fix typo in code block (#974) 2019-04-04 14:59:00 +01:00
Eric N. Vander Weele d94eb8cd7d PEP 570: Restructure sections as recommended by PEP 1 (GH-972)
Organize PEP 570 according to the recommended ordering of sections
defined in PEP 1.  This presents the proposal in a more organized and
compelling way.

Notable changes are:

- The content more easily reads in from top to bottom by moving core
  content into Abstract, Motivation, Rationale, Specification.
- Making a clear distinction of the impact to library authors and
  callers of APIs.
- Fixed-up usage of "parameters" and "arguments" on the context of the
  what is being discussed.
- Grammatical edits and simplified wording, while maintaining the core
  content and intent of the text.
2019-04-03 11:31:33 -04:00
Mark Shannon 7a4c4969c1 PEP 590: A new calling convention for CPython (#960)
Ready for discussion, though more edits are expected.
2019-04-03 08:11:19 -07:00
Guido van Rossum c05ec95abc
PEP 533: Correction: Make Yury BDFL-Delegate (#970) 2019-04-02 22:09:57 -07:00
Pablo Galindo 7042f376f3 PEP 570: Add a 'How to teach this' section and improve rejected ideas section with feedback from discourse (#963)
Part of this was written by Paul Ganssle (@pgnssle).
2019-04-02 22:08:54 -07:00
Guido van Rossum f0f291c95a
PEP 533: Make Guido BDFL-Delegate (#969) 2019-04-02 16:59:57 -07:00
Steve Dower d0e38c6f75
PEP 578: Rename open_for_import to io.open_code (#968) 2019-04-02 09:11:22 -07:00
Jeroen Demeyer 591d466b92 PEP 580: new flag CCALL_DEFARG instead of CCALL_FUNCARG (#967) 2019-04-01 12:55:23 -07:00
Kevin 6453679d0f Fix a typo in PEP 508 (#964) 2019-04-01 12:52:44 -07:00
Victor Stinner fa666656ce PEP 587: Add Py_RunMain() 2019-03-29 23:59:32 +01:00
Mark Shannon 51a95f3b44 Withdraw PEP 576, in favour of PEP 590. (#961) 2019-03-29 08:38:58 -07:00
Jukka Lehtosalo 0db9dcb199 PEP 589: TypedDict: Type Hints for Dictionaries with a Fixed Set of Keys (#956) 2019-03-29 06:38:13 -07:00
Pablo Galindo 2c08eac385
PEP 570: Add Guido as BDFL-delegate and link to discourse (GH-958) 2019-03-28 23:22:14 +00:00
Steve Dower cd42999322
PEP 578: Updated text for clarity (#959) 2019-03-28 15:53:22 -07:00
Victor Stinner f350734f80 PEP 587: Clarify relationship with PEP 432 (#955)
* PEP 587: Clarify relationship with PEP 432

* Update pep-0587.rst

Co-Authored-By: vstinner <vstinner@redhat.com>
2019-03-29 07:05:34 +10:00
Brett Cannon fcb7ffeb5e
Mark PEP 452 as final (#957) 2019-03-28 13:56:53 -07:00
Mariatta e335d6af44
Reserve PEP 588 as an extension of PEP 581 (#952) 2019-03-28 10:45:21 -05:00
Victor Stinner e435865373 PEP 587: Fix creation date 2019-03-28 09:46:32 +01:00
Victor Stinner 4b3e509818 PEP 587: shorter Abstract 2019-03-28 02:17:12 +01:00
Victor Stinner 16a6dfc9ac New PEP 587: Python Initialization Configuration
Change Victor Stinner email to vstinner@redhat.com.
2019-03-28 02:15:55 +01:00
Pablo Galindo 99b7952b5c PEP 570: Fix broken link and quote formatting (#954) 2019-03-28 11:16:54 +11:00
Brett Cannon f71d976878
Reject PEP 502 (#953) 2019-03-27 15:24:28 -07:00
Pablo Galindo 028d3d10ff
PEP 570: Add references to PEP 399, 3rd party modules using the notation and some additions (GH-948) 2019-03-27 21:03:51 +00:00