Commit Graph

6933 Commits

Author SHA1 Message Date
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
Serhiy Storchaka 7ca8985b8f Miscellaneous fixes and formatting enhancements. (#238) 2017-04-05 19:14:26 +03:00
Serhiy Storchaka 7d932d9588 Fix U+2019 (RIGHT SINGLE QUOTATION MARK) used instead of "'" in Python code. (#237) 2017-04-02 00:05:24 +03:00
Serhiy Storchaka d675175520 Convert PEPs 519, 528 and 529 from CRLF to LF line endings. (#236) 2017-04-02 00:04:46 +03:00
Serhiy Storchaka 425a46fb20 Fix an en-dash used instead of a hyphen in a long option. (#235) 2017-04-02 00:03:21 +03:00
Mariatta 6ec2412a30 PEP 498: Capitalize the F at the start of the sentence (#233) 2017-03-29 11:07:50 -07:00
Barry Warsaw 96a71d803b Fix a couple of typos. 2017-03-28 18:16:44 -04:00
Victor Stinner 03172174c4 Update PEP 545 2017-03-28 22:48:15 +02:00
Serhiy Storchaka a3062a8744 Restify PEP 307 (#229) 2017-03-27 12:18:45 -07:00
Serhiy Storchaka a53392a0f0 Remove trailing spaces. (#232)
Changes made automatically by the following command:
```
egrep -l ' +$' *.txt | xargs sed -i -re 's/ +$//'
```
2017-03-24 23:11:33 +02:00
Ivan Levkivskyi 257e909cae PEP 484: Clarify scoping of type variables (#231) 2017-03-24 08:35:10 -07:00
Serhiy Storchaka 07c157552d Replace tabs with spaces and fix identation errors. (#230) 2017-03-24 00:57:19 +02:00
Jim Fasarakis-Hilliard fdc8599b90 Polish wording in PEP-0545 (#228) 2017-03-22 09:38:56 -07:00
Ned Deily e638e87982 Update pep 494 for 3.6.1 final and 3.6.2 plans. 2017-03-21 22:43:00 -04:00
Victor Stinner 66d8117f86 Add PEP 545: Python Documentation Translations 2017-03-22 02:01:11 +01:00
Matthias Bussonnier 978a93cfc9 Provide examples regular expression for pep 440. (#227)
* Provide examples regular expression for pep 440.

Closes #226
2017-03-20 12:36:23 +10:00
Ivan Levkivskyi 938c61d1d7 PEP 544: Protocols (#224)
This adds static support for structural subtyping. Previous discussion is here python/typing#11

Fixes #222
2017-03-18 11:12:56 -07:00
Ivan Levkivskyi 881c6bebdb PEP 484: Add NoReturn type (#218)
As discussed in python/typing#165.
2017-03-17 13:46:55 -07:00
Nick Coghlan 0789423c46 PEP 538: update based on implementation progress
- using PYTHONIOENCODING poses a compatibility problem for
  Python 2 subprocesses, so use Py_SetStandardStreamEncoding
  instead
- note that components checking for "no output on stderr
  means success" will either need to avoid the warning or
  switch to checking return codes instead
- Docker, Inc. ends with a full stop, not a comma (noted by
  Jan Pokorný)
- explicitly acknowledge Charalampos Stratakis's work on the
  Fedora 26 backport
2017-03-17 18:27:53 +10:00
Oren Milman 1085515c33 add curly braces to a single-line if block example in PEP 7 (#225) 2017-03-14 10:35:27 -07:00
Nick Coghlan 24cd02b34c PEP 426: Further simplifications
- make expected filename pysdist.json and be clear this
  metadata is about the published source code, not any
  particular built or installed artifacts
- defer any changes to handling of project obsolescence
- add "all" and "alldev" as implied extras if not defined
- drop "self", "runtime" and proposed changes to the extras
  notation
2017-03-13 20:07:57 +10:00
Nick Coghlan 918d676de1 PEP 538: Update for status changes
- reference implementation should align with the PEP now, aside from
  excluding Mac OS X from the changes
- Fedora's initial 3.6 release is going to be 3.6.1, so reword the
  backport section accordingly
2017-03-13 18:08:49 +10:00
Nick Coghlan bbb750f6ba PEP 538: switch to PR as main reference implementation 2017-03-13 16:13:28 +10:00
Nick Coghlan 144c024805 PEP 538: Note Mac OS X limitation on reference implementation 2017-03-13 16:03:31 +10:00
Nick Coghlan 48f355fc28 PEP 538: update for python-dev & implementation feedback
- PYTHONCOERCECLOCALE=0 now also disables the library warning
- PEP just refers to locale-aware/locale-independent components,
  without specifically limiting that to C/C++ components
2017-03-13 15:06:48 +10:00
Nick Coghlan 8ae8b612d4 PEP 426: Update & move back to Draft status
- move Semantic Dependencies over to the Extras system
- integrate appropriate references to PEP 508
- cut no longer relevant "status report" sections
- cut explanations of changes that were moved to PEP 459
2017-03-10 19:14:27 +10:00
Nick Coghlan 54f77d6af9 PEP 508: Mark as Informational to match other metadata PEPs 2017-03-10 19:14:27 +10:00