Commit Graph

7988 Commits

Author SHA1 Message Date
Jelle Zijlstra eb6282b4a7 Change specification for `# type: ignore` (#1072)
As discussed on the typing-sig mailing list, the currently specified behavior for `# type: ignore` on a line by itself has remained mostly unimplemented and doesn't seem useful. Instead, the PEP now mandates a syntax for ignoring all errors in a specific file, which is more obviously useful.

I considered adding a sentence like "Individual type checkers may add additional syntax for silencing errors", but it didn't seem particularly useful since type checkers in general are free to add extensions to what PEP 484 specifies.

While I was at it I added a reference to PEP 526 to an out-of-date sentence adjacent to the modified paragraph.
2019-05-22 08:22:39 -07:00
Petr Viktorin cd524fad56
PEP 590: Record BDFL delegate (GH-1079)
In the Steering Council discussions leading up to the
[2019-04-26 update], I was appointed BDFL delegate for PEPs
576, 579, 580, and 590.
PEP 590 was still just a draft on the mailing list when the
SC updated the PEPs themselves, so it wasn't updated then.

[2019-04-26 update]: https://github.com/python/steering-council/blob/master/updates/2019-04-26_steering-council-update.md#peps
2019-05-22 14:30:22 +02:00
Christian Heimes dbb8cfcadb
PEP 594: discussion to discuss.python.org (#1078) 2019-05-22 13:32:12 +02:00
Christian Heimes 2feb1d4004
PEP 594: track experts (#1077) 2019-05-22 12:57:25 +02:00
Christian Heimes d6146f5d72
PEP 594: asyncore and asynchat are deprecated since 3.6 (#1071) 2019-05-21 22:44:51 +02:00
Christian Heimes fdfece520c
Keep colorsys (#1070) 2019-05-21 17:44:03 +02:00
Christian Heimes 2d536899f0
PEP 594: Update 1.5 (#1068)
* Fix markup for wave section

* Add estimated EOL for 3.9

* mention pynntp and why getopt and wave stay

* Add Ned's suggestion
2019-05-21 16:00:46 +02:00
Nick Coghlan 933fbf8626
PEP 558: Note compatibility constraints on locals(), other updates (#1069)
- new design discussion section to cover the requirement that the
  semantics of locals() itself at function scope be left alone
- propose a C level API that exactly matches Python level
  frame.f_locals semantics
- other minor text formatting and wording updates
2019-05-21 23:43:15 +10:00
Nick Coghlan 44f2986f8d
PEP 558: Remove dynamic frame semantics proposal (#1051)
Changing the frame API semantics based on whether or not a
tracing function is active is tricky to implement and hard
to document clearly, so this simplifies the proposal by
instead having the frame API always expose a write-through
proxy at function scope, and restricting the dynamic
snapshot behaviour to the locals() builtin.
2019-05-21 22:41:34 +10:00
Christian Heimes b8b55f631e
PEP 594: Update with discussion items (#1063)
* Deprecate parser module
* Keep fileinput module
* Elaborate why crypt and spwd are dangerous and bad
* Improve sections for cgitb, colorsys, nntplib, and smtpd modules
* The colorsys, crypt, imghdr, sndhdr, and spwd sections now list suitable substitutions.
* Mention that socketserver is going to stay for http.server and xmlrpc.server
2019-05-21 13:05:45 +02:00
Stéphane Wirtel c46d4f300f PEP 594: Add argparse as substitute of getopt (#1065) 2019-05-21 12:13:38 +02:00
Christian Heimes 7a0b2cd1be
PEP 594: Fix header (status and type) (#1062) 2019-05-21 00:07:23 +02:00
Christian Heimes 7799178afd
PE 594: Removing dead batteries from stdlib (#1061)
Signed-off-by: Christian Heimes <christian@python.org>
2019-05-20 22:15:35 +02:00
Jukka Lehtosalo 92c6ff0d9b PEP 589: Small updates based on feedback from @gvanrossum (#1060)
These are the updates I promised in https://github.com/python/peps/pull/991.
2019-05-20 10:50:00 -07:00
Victor Stinner 9d2abd5db3 PEP 587: fix typo 2019-05-20 14:05:52 +02:00
Victor Stinner 6062d2a6f3
PEP 587: version 4 (#1056)
The main change is the introduction of "Python Configuration" and
"Isolated Configuration" default configuration which are well better
defined. Replace all macros with functions.

Changes:

* PyPreConfig: no longer uses dynamically memory allocation,
  allocator type becomes an enum, add parse_argv and configure_locale
  field.
* PyConfig: Remove program field, rename module_search_path_env to
  pythonpath_env
* New functions:

  * PyPreConfig_InitIsolatedConfig()
  * PyPreConfig_InitPythonConfig()
  * PyConfig_InitIsolatedConfig()
  * PyConfig_InitPythonConfig()

* parse_argv default becomes 0
* Replace Py_INIT_xxx() macros with functions
* Document default values
* Remove PyConfig.dll_path
* Explain how PyConfig preinitializes Python and the relationship
  between command line arguments and the pre-initialization.
* Rename use_module_search_paths to module_search_paths_set
* Rename PyInitError_Err() to PyInitError_Error()
* "Pre-initialization" => "Preinitialization"
* Reject preconfig=NULL and config=NULL
* Replace "wchar_t**" with "wchar_t * const *", same for "char**".
2019-05-20 13:11:42 +02:00
till c100af6d10 Initial import of PEP 593: Flexible function and variable annotations (#1014) 2019-05-19 22:09:35 +01:00
Jeroen Demeyer 502c87cde8 PEP 590: remove new METH_VECTORCALL flag (#1048) 2019-05-18 13:20:29 +01:00
T. Wouters 4e0a7443f4 Minor textual edits of PEP 587. (#1055) 2019-05-16 15:12:46 +02:00
Ethan Smith b5a4f071d5 PEP 518: Clarify any tool can use the tool table (#1054)
Context: https://discuss.python.org/t/pep-518-clarify-scope-of-tool-section/1682
2019-05-15 23:33:02 -07:00
Victor Stinner aceed0d7c0 PEP 587: fix typos in Version History 2019-05-16 00:28:16 +02:00
Victor Stinner 107af3a323 PEP 587: Cleanup 2019-05-16 00:17:40 +02:00
Victor Stinner 4cefacceba
PEP 587: API v3 (#1052)
* Thomas Wouters is now the BDFL-delegate
* Elaborate the Rationale
* New "Path configuration" section
* New "Python Issues" section
* Add PyWideStringList_Insert() function
* Add PyConfig.configure_c_stdio option.
* Add PyConfig.parse_argv field
* Rename bytes/wide functions. Add "Bytes" to functions taking char*,
  remove "Wide" from functions taking wchar_t*. Rename
  PyConfig_DecodeLocale() to PyConfig_SetBytesString().
* PyConfig: Rename '_frozen' to 'pathconfig_warnings'
* Re-introduce PyConfig._init_main
* Complete tables of global configuration variables; annotate
  variable values which are negated.
* Add default values of all PyPreConfig and PyConfig fields
* Elaborate the Rationale
* Add a few more issues
* Add PyPreConfig.legacy_windows_fs_encoding rules
* Add "Isolate Python" section
* PyConfig_SetString() and PyConfig_SetBytesString() now requires the
  configuration as the first argument.
* Rename Py_UnixMain() to Py_BytesMain()
2019-05-15 18:50:11 +02:00
Barry Warsaw 81d2b5ccd7
Accept PEP 581 2019-05-14 18:13:32 -07:00
Nick Coghlan f807f02934
PEP 569: Move release PEP to correct index section (#1050) 2019-05-14 22:13:39 +10:00
larryhastings 42523f32b6 Remove implicit proposals to support "optional groups". (#1040) 2019-05-14 21:16:24 +10:00
Ivan Levkivskyi 8aecf9d07a
Minor tweaks to PEP 544 (#1046)
This PR contains mostly minor wording tweaks plus a paragraph explicitly allowing class objects as implementations of protocols, previously there were questions whether it is actually allowed, see python/mypy#4536.
2019-05-13 11:22:49 +01:00
Jeroen Demeyer 1df4f57758 PEP 590: rename PyCall_MakeVectorCall -> PyVectorcall_Call (GH-1037) 2019-05-12 12:46:02 -04:00
Donald Stufft 468ab6e8a5
Mark PEP 592 as Accepted (#1047) 2019-05-12 12:14:33 -04:00
Ivan Levkivskyi 88135b711d
PEP 544: Specify usage of modules as subtypes of protocols (#646)
See python/mypy#5018 for motivation.
2019-05-12 00:18:56 +01:00
Jeroen Demeyer 58b713c4ef PEP 590: no longer mention tp_descr_set (#1041) 2019-05-11 13:31:02 +01:00
Jeroen Demeyer 3f0a21ebe0 PEP 590: Use PyObject *kwnames, which may be NULL (#1039)
* PEP 590: Use PyObject *kwnames, which may be NULL

* PEP 590: nargs after args
2019-05-11 13:30:14 +01:00
Michael J. Sullivan b3c3e9bca4 PEP 591: Discuss (not doing) runtime final enforcement (#1044)
Co-Authored-By: Ivan Levkivskyi <levkivskyi@gmail.com>
2019-05-10 18:40:46 -07:00
Donald Stufft 1e8f07b877
PEP 592: Typo fixes & restructuring (#1043) 2019-05-10 11:37:42 -04:00
Donald Stufft 8ac1ec8fe6
592 Clarifications (#1042) 2019-05-10 10:52:33 -04:00
Nick Coghlan 363d67baae
PEP 457: Better distinguish this PEP from PEP 570 (#920)
This PEP: shorthand notation to describe positional-only arguments
PEP 570: Elevating that notation to actual Python syntax
2019-05-09 17:59:35 -04:00
Hugo 2663c13a28 PEP 503: Update PyPI's base URL for Warehouse (#1036) 2019-05-09 14:27:52 -07:00
Dominik Gabi 3e293e68e9 [pep-0591] clarify that type checkers may not allow `Final` in loops (#1033) 2019-05-08 17:36:02 -04:00
Petr Viktorin 7fc318e844
PEP 590: Update (GH-1035)
Intermediate result of discussions from:

* https://github.com/python/peps/pull/1028
* https://github.com/python/peps/pull/1035

Co-Authored By: Jeroen Demeyer <J.Demeyer@UGent.be>
2019-05-08 15:32:35 -04:00
Antoine Pitrou 60d8b08e39 PEP 574: Mark accepted (#1031) 2019-05-08 11:56:00 -04:00
Donald Stufft 543cece82e
Clarifications to PEP 592 (#1034) 2019-05-08 11:00:46 -04:00
Donald Stufft 01b3a01495
PEP 592: Support for "Yanked" Files on the Simple API (#1032) 2019-05-07 20:55:00 -04:00
Christian Heimes 6769551f66 PEP 578: mark as accepted (#1030)
Signed-off-by: Christian Heimes <christian@python.org>
2019-05-07 16:51:11 -04:00
Nick Coghlan cb033869fc
PEP 517: Clarify expected front end handling of setup.py based trees (#1029)
The previous wording could be taken as suggesting that frontends should opt
out of their PEP 517 processing entirely if build-backend was not defined,
whereas it's actually fine to just use the setuptools provided backend that
implements the legacy build semantics.
2019-05-07 15:37:29 -04:00
Steve Dower 4ab33c63f1 PEP 578: Update with feedback (#1023)
* Note about naming style
* Add note about using package name
* Avoid embedding null characters
* Add socket event argument to socket events
2019-05-07 15:36:45 -04:00
Mark Shannon fd54e6e509 PEP 590: Swap tp_vectorcall_offset and tp_vectorcall slots. (GH-1026)
PEP 590: Swap tp_vectorcall_offset and tp_vectorcall slots to allow Cython to use vectorcall in versions before 3.8.
2019-05-07 09:54:57 -04:00
Petr Viktorin 7dc58a6307
Reject PEP 580 in favor of PEP 590 (GH-1027) 2019-05-07 09:54:15 -04:00
Łukasz Langa 2ff689ff08
Update release dates of 3.8a4 and 3.8b1 2019-05-06 22:23:09 +02:00
Logan Jones 6a705de78e Update PEP-572 for f-strings (see bpo-36798) (#1024)
See bpo-36798.

This update specifies the interplay between f-strings and
the assignment operator. Specifically, it attempts to
clarify how to use assignment operators inside of f-strings.
2019-05-06 11:30:23 -05:00
Victor Stinner ad68d00ba1 PEP 587: fix typo 2019-05-02 16:45:44 -04:00