Commit Graph

7009 Commits

Author SHA1 Message Date
csabella 329ed7e935 reSTify 5 PEPs (#276) 2017-06-02 11:46:13 -07:00
Nick Coghlan 02969ebbd2 PEP 517: Revert to Draft status
The provisional acceptance led to some additional valid concerns being raised
with the current design in the PEP, so I'm reverting it to Draft status
while we resolve them.
2017-06-03 02:19:10 +10:00
csabella 5d3ac8912e reSTify PEP 237 (#273) 2017-06-01 17:51:29 -07:00
Barry Warsaw 9cf4bde5e6 Braces are required. (#280)
Closes #279
2017-06-01 19:04:40 -04:00
Cory Benfield ba07230ce7 Address concerns from python-dev for PEP 546. (#278)
* Adress concerns from python-dev.

* Add myself to authors.
2017-06-01 21:30:16 +02:00
Marcel Plch cd84e206f5 PEP 547: -m switch support for extension modules
Add PEP to enable -m switch support for extension modules
2017-05-31 19:06:32 +10:00
Cory Benfield ccc6b12a7d Grammatical and minor content changes to PEP 546. (#274)
* Grammatical changes to PEP 546

* Address @alex's grammatical feedback.
2017-05-30 15:11:53 -04:00
Ivan Levkivskyi 25b7a873f8 Allow deriving NewType from another unique type (#271)
See discussion in python/mypy#3465
2017-05-30 09:56:56 -07:00
Victor Stinner f06c5be3d1 New PEP 546: Backport MemoryBIO to Python 2.7 (#272)
* New PEP 546: Backport MemoryBIO to Python 2.7

* PEP 546: Alex Gaynor's review

* PEP 546: Nick Coghlan's review: ensurepip

* PEP 546: new Nick Coghlan's review
2017-05-30 14:58:20 +02:00
Nick Coghlan 91299310ff Mark PEP 517 as Accepted 2017-05-29 13:43:34 +10:00
Nick Coghlan a39c23e341 PEP 516: Rejected in favour of PEP 517 2017-05-29 13:22:14 +10:00
Thomas Kluyver 49b693c46a PEP 517: Specify UTF-8 for captured output (#264) 2017-05-29 11:23:39 +10:00
Nick Coghlan 4aaf8e6a96 Update PEP 11 for PEP 538 acceptance (GH-269)
Part of the PEP 538 implementation is to add a new
"Legacy C Locale" section to PEP 11 that explicitly
limits our support for running Python 3.7+ in the
ASCII based legacy C locale.

(Note: if PEP 540 is also accepted, this section will
be amended accordingly)
2017-05-29 11:17:12 +10:00
Nick Coghlan 6541b4be47 Mark PEP 538 as Accepted 2017-05-28 16:53:44 +10:00
csabella e15c2c15eb reSTify PEP203 and PEP238 (#268) 2017-05-27 14:46:58 -07:00
Nick Coghlan 12cecb0548 PEP 538: Only set LC_CTYPE, never LANG
It looks like setting LANG may have undesirable
side effects in some cases, and all the issues
the PEP aims to handle are resolved by setting
LC_CTYPE.

The proposal and implementation have thus been
updated to only set LC_CTYPE, even when the
target coercion locale is a full locale.
2017-05-27 17:08:32 +10:00
Brett Cannon db50b27755 Clarify what goes to b.p.o and what goes to python-ideas (#267) 2017-05-26 11:15:27 -07:00
csabella d66124f598 reSTify PEP 266 (#265) 2017-05-26 07:26:33 -07:00
Max 1ef52e9d6a Prohibit type variables inside ClassVar (#254)
Prohibit type variables inside TypeVar
2017-05-25 19:57:27 +10:00
Ivan Levkivskyi 4205604fc8 Updates to PEP 544: Protocols (#255)
* Add covariant mutable overriding and overriding variance to rejected ideas

* Update the notes on runtime implementation

* Add one more argument for prohibiting variance overrides
2017-05-24 13:38:49 -07:00
Ivan Levkivskyi 384ff42460 Add using ClassAttr instead of ClassVar to rejected ideas (#261) 2017-05-22 18:12:14 -07:00
Julien 557796b9d9 PEP 545: Accepted. (#263) 2017-05-21 18:35:11 +10:00
Julien 89a6707bf3 PEP 545: Add rationale about the License Agreement, and be precise about its implementation. (#262) 2017-05-20 06:03:17 -07:00
Noel Martin Llevares 41c0cd3c98 Fix indentation and wrapping in PEP 506 (#260)
Closes https://github.com/python/peps/issues/259
2017-05-18 18:08:46 -07:00
Victor Stinner 4ec9e8c4a3 PEP 545: Julien Palard is the main author
Put Julien as the first in the Author field.
2017-05-18 10:39:29 -07:00
Victor Stinner f4be1cd4bf bpo-9850: PEP 4: macpath deprecated in Python 3.7 (#257) 2017-05-16 22:41:51 +02:00
Jim Fasarakis-Hilliard 0f8d0166d1 Fix Emacs footer in PEP-11 (#258) 2017-05-16 09:53:43 -07:00
Julien bb2e55f140 PEP 545: Update licensing after discussion with Van. L from the PSF (#256)
* PEP 545: FIX typo.

* PEP 545: Grammar tweaks from Brett Cannon.

* PEP 545: Adding the Hugarian group in known groups.

* PEP 545: FIX typos, thanks to Jakub Wilk.

* PEP 545: Clarify the false equality between language codes and country codes.

* PEP545: Update licensing after discussion with Van. L from the PSF.
2017-05-15 09:40:45 +02:00
Max 534c911d7a Update generic class attribute and type variable usage (#239)
See https://github.com/python/mypy/issues/2878
2017-05-10 20:54:35 -07:00
Andreas Pelme ff3b268335 Correct bad naming in TypeScript example (#253)
The interface should be named `LabeledItem` and not `LabeledValue`.
2017-05-10 22:20:33 +10:00
Nick Coghlan 4600ef2c98 PEP 538: Add latest python-dev post to history 2017-05-09 22:27:22 +10:00
Nick Coghlan 2f530ce0d1 PEP 538 updates for python-dev review
* Tidy up the abstract and emphasise the equivalence between
  this proposal and long supported configuration settings
* Don't set LC_ALL (set LC_CTYPE instead)
* Add a rationale for that change
* Use GNU readline misbehaviour as a specific example of the
  benefits of reconfiguring the locale
* Clarify rationale for enabling the changes by default on all
  autotools-using platforms
* Mention the possibility of exposing a public API for use by
  embedding platforms
2017-05-09 20:46:59 +10:00
Jim Fasarakis-Hilliard ae226965ea Fix a couple of issues with pep0540 (#252) 2017-05-08 15:24:28 -07:00
Nick Coghlan 95bdb222e1 PEP 538: Reference implementation has been updated 2017-05-06 22:21:09 +10:00
Nick Coghlan 4067701b85 PEP 538: clarify sys.stderr error handler isn't changing
The previous wording suggested that all three standard streams
were affected by the proposed change to the default error handler.

Only stdin and stdout are affected - the default error handler for
stderr continues to be "backslashreplace"
2017-05-06 20:59:05 +10:00
Nick Coghlan 2fb53e7c1b PEP 538: Update for latest python-dev discussion
* default standard stream error handler is always "surrogateescape"
  for the potential coercion target locales
* PEP 540 is now a purely optional follow-on PEP that improves the
  handling of cases where none of these locales are available,
  but doesn't require revisiting the changes made for this PEP
* the locale coercion and warning behaviours are now enabled by
  default for all \*nix platforms, even Mac OS X
* covered the Android-specific changes to the use of `setlocale`
* state explicitly that we're aware this makes the behaviour
  of standalone CPython and embedded CPython diverge, we just think
  the potential benefits are sufficient to accept that downside
* note the reference implementation has yet to be updated with
  these changes
2017-05-06 17:06:40 +10:00
Nick Coghlan dc175c5902 PEP 538: Minor JVM/CLR related clarifications 2017-05-05 00:59:53 +10:00
Nick Coghlan c1642ea4a3 PEP 538: add missing underscore 2017-05-04 23:21:31 +10:00
INADA Naoki 1687cb26ac pep-538: fix some wrong backtick usage. (GH-251) 2017-05-04 23:20:13 +10:00
INADA Naoki a5d764f268 pep-0538: rephrase UTF-8 locale description (#249) 2017-05-01 16:26:50 +10:00
Erik Bray fcda9a2c8c Updates to PEP-539 draft (#248)
* Typo: "not not" (thanks Florent Hivert)
* Added a terminology note that hopefully should clear up confusion for new-comers to the PEP, as there have also been recent PEPs/discussions surrounding TLS in the HTTPS sense
* Adds a brief summary of the motivation to the abstract, along with a link to the relevant bug
* Updated the new API specification to reflect additions/changes since the last draft
* Added a usage example to the specification
* Added an explanation of the need for Py_tss_NEEDS_INIT to the rationalization
* Other minor wording updates and typo fixes
2017-05-01 01:59:31 +10:00
Brett Cannon 1dfffe8c40 PEP 515 was implemented in Python 3.6 2017-04-28 14:39:53 -07:00
Ivan Levkivskyi ea2cd1593b Few more updates to PEP 544: Protocols (#246)
* Drop Set's from protocols; add adapters to rejected ideas

* Add link to runtime implementation
2017-04-27 16:06:36 -07:00
Jelle Zijlstra a7e294d3b4 PEP 484: Add implicit promotions for Python 2.7 (#245)
This was discussed in https://github.com/python/typeshed/issues/270#issuecomment-296411726. Both mypy and pytype behave as described already. We should document this behavior in the PEP to make sure people are aware of it and promote uniformity.

Mypy also implicitly promotes bytearray to bytes in both Python 2 and 3. Not sure if that's worth codifying in the PEP too.

@vlasovskikh Is this also OK for PyCharm?
2017-04-24 08:24:24 -07:00
Nick Coghlan de15fb533c Update BDFL delegations for PEPs 538 & 540
- Barry stepping down due to lack of time
- Naoki Inada will handle both PEPs due to
  the significant overlap between them
2017-04-24 14:33:34 +10:00
Jelle Zijlstra bcd4fef673 fix typos in PEP 544 (#244)
Fixes a few typos in an example and a confusing phrase.
2017-04-23 08:10:00 +10:00
Ivan Levkivskyi 6024eea320 Updates for PEP 544: Protocols (#243)
Note: there's an open question about whether interface variance should be inferred or be user-declared (defaulting to invariant unless declared otherwise). The current draft uses inferred invariance. See e.g. discussion at https://github.com/python/peps/pull/243#issuecomment-295826456.
2017-04-22 07:43:32 -07:00
Eric V. Smith e0adf84055 Mark PEP 498 as Final. It was shipped with 3.6. 2017-04-15 16:16:09 -04:00
Mariatta 7b06cc339a Use number 9999 in a draft PEP (#234)
Closes https://github.com/python/peps/issues/223
2017-04-12 10:27:15 -07:00
Vincent Philippon 6f5d594ca2 PEP-508: Fix imprecisions about `python_version` (#240)
* Change the specification example to be clearer.

Previously, we compared python_version < "2.7.10".
As python_version only keeps the major and minor number (2.7, 3.2),
it could lead to unexpected behaviour when comparing to 3-parts versions.
Changing the example might reduce the risk of making that small but
confusing mistake.

* Fix mistake in Backwards Compatibility about python_version.

In this section, it said:
"handle version comparisons with python_version "2.7.10" differently."
while is should have mentionned python_full_version, as python_version
will never have a 3-part version value.
2017-04-11 09:17:01 -04:00