Commit Graph

8955 Commits

Author SHA1 Message Date
Mark Shannon 13b8bb4c5d
PEP 651: Add a couple of missing words. (#1768) 2021-01-19 17:53:22 +00:00
Mark Shannon cc47b869b7
PEP 651: Robust Overflow Handling (#1767)
* First draft of robust overflow handling PEP.

* Edits

* Assign PEP number 651.

* Final edit before publication.
2021-01-19 12:46:22 +00:00
Eric Traut 28fc05c35a
PEP 647: Incorporated feedback from Guido about terminology and type relationship between bool and TypeGuard (#1765) 2021-01-15 20:55:07 -08:00
Brett Cannon a59cc3121c
PEP 650: update post-history and discussions-to (#1764) 2021-01-14 14:01:16 -08:00
Brett Cannon 67ab198c25
PEP 650: Specifying Installer Requirements for Python Projects (#1762) 2021-01-13 17:40:00 -08:00
Chris Angelico 19af5f8f0d
PEP 12: Clean up and modernize guidelines. (#1759)
* PEP 12: Clean up and modernize guidelines.

The peps@python.org list has been shut down, and everything is done via
GitHub pull requests. Also, we no longer need some of the older steps,
and it's easier to read if some of the obscure/unusual options are
buried away in parentheses.

Open to discussion, can split this up if it's controversial.

* PEP 12: Describe number allocation system

* Derp, best to lead people correctly! Thanks Brett

Co-authored-by: Brett Cannon <brett@python.org>

* Don't exclude non-mailing-list discussion targets

Thanks Brett

Co-authored-by: Brett Cannon <brett@python.org>

* PEP 12: Be inclusive of non-mailing-list forums again

* PEP 12: Recommend the use of GitHub's issue tracker for questions

Co-authored-by: Brett Cannon <brett@python.org>
2021-01-13 05:04:05 +11:00
Mario Corchero a1ab0610e8
PEP 648: Add copyright notice (#1760)
Co-authored-by: Chris Angelico <rosuav@gmail.com>

Co-authored-by: Chris Angelico <rosuav@gmail.com>
2021-01-13 04:26:30 +11:00
Larry Hastings 9a4b7c6071 Clarify 649 wrt annotations inside flow control. 2021-01-11 16:14:32 -08:00
Larry Hastings 33b7bdcf94 Minor formatting touch-ups for PEP 649. 2021-01-11 12:23:40 -08:00
Larry Hastings 3227c9aa8f Added PEP 649, Deferred Evaluation Of Annotations...
...zzzz.
2021-01-11 10:25:13 -08:00
Ned Deily b687b1ea91
schedule 3.7.10 and 3.6.13 2021-01-10 14:01:04 -05:00
Mario Corchero e5026ebc42
PEP-648: Change implementation to folder with scripts (#1758)
Moving away from namespace packages after receiving feedback.
2021-01-05 09:58:14 -08:00
Guido van Rossum 7f4bb58481
Revert "PEP 635: Add a rebuttal of PEP 642 (GH-1691)" (#1757)
This reverts commit aafca24693.

PEP 642 was updated and the commentary here is out of date.
IMO we needn't address it here.
2021-01-04 07:37:59 -08:00
Mario Corchero 863c034899
PEP 648: Target Python 3.10 + minor wording fixes (#1754)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-01-04 11:49:52 +00:00
Nick Coghlan 84b1972292
PEP 642 v3: Explicit pattern matching syntax (#1756)
* requires that all uses of bare names be qualified with the user's intent
* ensures that all name binding operations in patterns use the as keyword
* drops alignment with iterable unpacking syntax (always requires square brackets)
* drops alignment with class instantiation syntax (defines a new dedicated instance attribute matching syntax instead)
2021-01-03 23:45:20 +10:00
방성범 (Bang Seongbeom) cdbac8e836
PEP 612: Fix typo (#1755) 2021-01-02 20:39:50 -08:00
Matthew Rahtz f507e8870f
PEP 646: Various updates (#1751)
Naming:
* Rename Tuple
* Rename Tensor -> Array (it's less jargony, and I think it's the more general term)
* Rename Expand -> Unpack (to be consistent with the terminology for normal tuples)
* Rename ArgTs -> Ts, ReturnT -> R
* Rename 'type tuple variable' -> 'type variable tuple'

Semantic:
* Explicitly state that a TypeVarTuple can hold *zero* or more types
* Explicitly state that TypeVarTuple doesn't support variance or bound yet
* Support Union[*Ts]
* Support concatenating multiple unpacked TypeVarTuple when there's no ambiguity
* Support aliases
* Remove support for class overloads; replace with overloads of individual methods

Pedagogical:
* Reorder introductory material to make it clearer how TypeVarTuples behave when not unpacked, and to make it clearer that using them without unpacking them is a perfectly valid thing to do
* Remove example of unpacking being used with a regular Tuple rather than a TypeVarTuple (my main reason for wanting to include it was to emphasise that a TypeVarTuple behaves like a Tuple, but I think this is emphasised better in previous sections now, and since I don't think it has any use cases, it seems better to remove it to keep things shorter and more to the point)
* Replace Tuple[*Ts] with just Ts (now that we've settled on Ts definitely meaning "A Tuple filled with types", writing Tuple[*Ts] is redundant - it's exactly the same as Ts, but with more keystrokes)
* State explicitly that TypeVarTuple can be used with Callable
* Changes args_to_tuples example to args_to_lists (so it's clearer where the Tuple comes from)
* Show more examples of where Map can be used
* Move section on nesting Map to the 'Rationale and Rejected Ideas' section (it's complicated enough to be too distracting if it were in the main section, and since there isn't an obvious use-case, we leave it as an optional feature)
* Add section on a full example of an array type
* Remove ideas for future PEPs (to reduce length)
* Add more detail on the range of type concatenations that are allowable

Other:
* Add Pradeep to the authors list, since he's contributed so much :)
* Add Eric Traut in the acknowledgements
* Update Post-History
* Fix some references
* Fix first Array example to remove the need for a cast
* Various wording tweaks
2021-01-01 17:08:20 -08:00
Guido van Rossum 951dfad2d0 PEP 647: Fix nits found by David Foster 2021-01-01 16:41:42 -08:00
Eric Traut 1f1928e4f6
PEP 647: Added clarification about the type narrowing mechanics (#1753) 2020-12-30 14:26:05 -08:00
Pablo Galindo bb84af267d PEP 648: Fix date format 2020-12-30 21:40:47 +00:00
Mario Corchero 57579cee66
PEP 648: Extensible customisations of the interpreter at startup (#1752) 2020-12-30 21:28:56 +00:00
Stefano Borini 23b9fffb1f
PEP 637: Addnew slots to the C interface (#1750) 2020-12-28 09:38:34 -08:00
Eric Traut a2269ff5b8
PEP 647: User-defined Type Guards (#1748) 2020-12-27 18:57:44 -08:00
Tim Gates 3df12e5446
docs: fix simple typo, survery -> survey (#1749)
There is a small typo in pep-0550.rst.

Should read `survey` rather than `survery`.
2020-12-27 18:03:48 -08:00
Patrick Reader 66d56bcf3f
fix typos in PEP 635 (#1746) 2020-12-24 06:17:26 -08:00
kj 08f7e0e699
PEP 612: Clean up code examples, link to CPython implementation (#1745) 2020-12-23 20:20:36 -08:00
Stefano Borini 831e7256d5
PEP 637: Allow empty starred arguments (GH-1744)
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2020-12-23 10:43:35 -08:00
Stefano Borini fc43230308
PEP 637: Feedback and various typo fixes (GH-1741) 2020-12-23 10:05:12 -08:00
Matthew Rahtz c86d1cc89d
PEP 646: First draft (#1740)
(This draft will need some work before it is acceptable, see my message to typing-sig and my comments in the Google Doc. But I'd like to claim the PEP number.)
2020-12-22 18:23:44 -08:00
Mark Shannon 4e5abc4ca4
PEP 626: Allow zero-width entries in code.co_lines(), to allow better bytecode generation. (#1743) 2020-12-22 13:54:47 +00:00
Łukasz Langa 6ae684738d
[pep-0569] Actual date for 3.8.7 2020-12-21 19:17:23 +01:00
Łukasz Langa e1a87ff7c3
[pep-0596] Actual dates for 3.9.1rc1 and 3.9.1 2020-12-21 19:16:50 +01:00
Łukasz Langa ec76473a5d
[pep-0569] Actual date for 3.8.7rc1, revised date for 3.8.7 2020-12-17 18:43:07 +01:00
Sam Bull dc10678351
PEP 423: Update link to glossary (#1738) 2020-12-16 11:59:31 -08:00
Ee W. Durbin III 4c2e06bfa2
PEP 8102: Publish results (#1739) 2020-12-16 08:13:46 -05:00
Petr Viktorin 458b1b85c0
PEP 630: change to Active and link to the new xxlimited module (GH-1736)
bpo-42111 is resolved, which closes the remaining "XXX" note in the PEP.
It's ready for Active status.
2020-12-15 15:58:23 +01:00
Batuhan Taskaya 6653287b17
PEP 601: Add my email (#1734) 2020-12-15 00:48:31 +03:00
Bernát Gábor bd4d3b9d09
PEP-517: On Windows the subprocess calls don't start resolving from the PATH (#1730)
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
2020-12-14 12:13:50 -08:00
Ee W. Durbin III e0e5bdbf8d
new name <3 (#1733) 2020-12-14 11:47:28 -08:00
Brett Cannon c4d80397c3
Reject PEP 641 (#1729) 2020-12-10 19:51:17 -08:00
Pablo Galindo 53780b6c63
PEP 619: Update date for 3.10.0a3 2020-12-08 01:41:58 +00:00
Mariusz Felisiak 3f7151a406
PEP 619: Update date for 3.10.0a2 (#1727)
https://www.python.org/downloads/release/python-3100a2/
2020-12-04 19:11:48 +00:00
Miroslav Šedivý 45fdc844dd
Typos: Remove repeated words (#1726) 2020-12-04 09:51:44 -08:00
Paul Ganssle b8b8a034c5
PEP 643: Mark as accepted (#1724) 2020-12-01 10:19:48 -05:00
Ernest W. Durbin III f526028457
add voter roll for 2021 term steering council election (#1723) 2020-11-30 13:28:35 -05:00
Mark Shannon e8ba4e884c
PEP 626: Clarify which keywords are considered to be executable code. (#1722)
PEP 626: Clarify which keywords are considered to be executable code.
2020-11-30 14:54:19 +00:00
Łukasz Langa ee0ce8e670
[pep-0596] Actual date for 3.9.1rc1, planned for 3.9.1, 3.9.2rc1, and 3.9.2 2020-11-27 00:06:31 +01:00
Łukasz Langa 7fbdf6ef3b
[pep-0569] Push 3.8.7rc1 and other bugfixes a month forward 2020-11-27 00:06:05 +01:00
Guido van Rossum 6ff19bcd03 Delete stray foo.py added by #1721 (f01b03ec) 2020-11-22 09:51:49 -08:00
Guido van Rossum f01b03ec55
PEP 635: Explain why mapping patterns ignore extra keys (#1721) 2020-11-22 09:49:51 -08:00