Commit Graph

6996 Commits

Author SHA1 Message Date
Brett Cannon fdb0cd2f08 Should check whitespace as part of CI 2016-11-18 17:14:58 -08:00
Brett Cannon 856ef2ef9c Probably want .github/CONTRIBUTING.md (#137) 2016-11-18 17:13:03 -08:00
Brett Cannon 74da33d722 Add more GH migration details (#136) 2016-11-18 15:19:01 -08:00
Brett Cannon 43e0df1f07 Update link to CI experiments (#135) 2016-11-18 12:04:44 -08:00
Brett Cannon 3ebcb7c954 Update GitHub migration status (#134) 2016-11-18 11:07:51 -08:00
Yury Selivanov 2e74d2b133 pep 525: Mention collections.abc.AsyncGenerator. 2016-11-17 18:11:52 -05:00
Yury Selivanov e10a1a2650 525, 530: Add acknowledgments section 2016-11-08 13:39:23 -05:00
Yury Selivanov 39b84d15f5 pep492: Clarify that only native coroutines can emit ResourceWarning on GC 2016-11-08 12:20:03 -05:00
Steve Dower 747dce3504 Update status of PEP 528 and PEP 529 2016-11-06 19:37:37 -08:00
Ivan Levkivskyi 6a74c9ebaf PEP 484: Add a note that misplaced type comments are errors for typecheckers (#133)
Fixes python/typing#210.

This behaviour with --fast-parser is in mypy since mid-May. It looks like nobody is complaining.
2016-11-06 10:54:51 -08:00
Eric V. Smith 7abeffc60d Updated posting history. 2016-11-06 11:26:59 -05:00
Eric V. Smith ac0afc6434 Disallow backslashes in the expression part of f-strings. See https://mail.python.org/pipermail/python-dev/2016-September/146357.html for a discussion and an implied acceptance by Guido. 2016-11-06 11:18:17 -05:00
Nathaniel J. Smith b60019e09a Various edits to PEP 521 (#132)
Mostly textual cleanup; no change in actual proposal.
2016-11-05 16:21:33 -07:00
Brett Cannon 51bf7c2ce4 Update the status for CI services to in-progress (#131) 2016-11-05 14:38:29 -07:00
Brett Cannon 2c1eb2b416 Update the status for CI services to in-progress (#130) 2016-11-05 13:29:51 -07:00
Nick Coghlan 0861d8e114 PEP 532: typo fixes 2016-11-05 19:49:37 +10:00
Nick Coghlan 9f8dddecc0 PEP 432: updates prior to python-ideas posting
- propose specific Grammar changes
- rename potential boolean circuit breakers so they read
  better when using them to explain and/or behaviour
  - operator.logical_or -> operator.true
  - operator.logical_and -> operator.false
- discuss a problem Guido raised regarding inconsistency
  between the proposed operator and conditional expressions
  (I think it's fixable, but fixing it would have some
  pretty significant consequences for the overall language)
- add today to Post-History
2016-11-05 19:21:05 +10:00
Nathaniel J. Smith d30bf73e24 Add PEP 533: deterministic iterator cleanup (#129) 2016-11-04 16:08:51 -07:00
Guido van Rossum 0136e27cc6 Many edits in the spirit of PR #105. 2016-11-03 15:21:41 -07:00
Andrew Svetlov 317cede6ec Update for asyncio PEP (#105) 2016-11-03 15:21:23 -07:00
INADA Naoki 4f899a0f01 ".0" is suffix, not prefix. (#127) 2016-11-03 08:57:06 -07:00
Nick Coghlan 8191dab630 PEP 532: tweak name in example 2016-11-03 16:00:50 +10:00
Nick Coghlan 8f095cf8c0 Change PEP 532 to propose a new operator
- if-else, and, or are now left alone
- else is introduced as a new short-circuiting binary operator
- "circuit breaking" is introduced as the operator and protocol name
- exists() builtin checks for existence
- missing() builtin checks for non-existence
- "not exists" gives a missing instance and vice-versa
- chained comparison is adjusted to use the new protocol when available
2016-11-03 15:26:51 +10:00
Nick Coghlan 38371b4ece More PEP 532 notes 2016-11-03 15:26:51 +10:00
Nick Coghlan 3378b94274 PEP 532: Conditional result management protocol
First draft of a proposal that blends PEP 335's concept of allowing
overloading of the logical binary operators with PEP 531's notion
of improved native support for tolerating missing data values.
2016-11-03 15:26:51 +10:00
Ivan Levkivskyi ada7d3566e PEP 484: Allow annotating first argument of instance and class methods (#89) 2016-11-01 08:15:17 -07:00
Ivan Levkivskyi a1cd7fb7c8 Clarify per-argument type comments in PEP 484 (#126) 2016-11-01 08:12:17 -07:00
Ivan Levkivskyi bf827dc23d [WIP] Add Coroutine ABC to PEP 484 (#125)
* Simpler example for Coroutine
2016-11-01 08:07:53 -07:00
Ned Deily a978d2cbb0 Update pep-0494.txt 2016-11-01 01:02:33 -04:00
Mark E. Haase b968fe97b9 Clean up PEP-505. (#119)
* Replace emoji with C# spelling for operators.
* Remove some unnecessary alternative spellings.
* Add proper python code blocks.
* Other miscellany.

*Commit to a specific syntax*
I've removed all of the alternative syntax discussion and the
community poll. I expanded the reasoning for picking the spellings
that I did.
2016-10-31 08:36:47 -07:00
Nick Coghlan 9a70e511ad Withdraw PEP 531 based on python-ideas discussion 2016-10-30 11:51:23 +10:00
Brett Cannon eaa238bc04 Mark the devguide updates as done (#124) 2016-10-28 14:54:37 -07:00
Brett Cannon 308477cea7 Fix some syntax issues preventing code literal rendering 2016-10-28 14:20:14 -07:00
Nick Coghlan d5969080c7 PEP 531: simplify code expansion to match original 2016-10-28 18:35:53 +10:00
Nick Coghlan 7371998040 PEP 531 updates after more time to reflect
- proposed precondition operator is now "?then"
- discusses the possible use of mathematical existence notation
- discusses some of the implications of different design decisions
- assorted other fixes and clarifications
2016-10-28 16:58:17 +10:00
JimJJewett 726215140a README.rst should indicate a preference for .rst (#117) 2016-10-27 09:26:10 -07:00
Fabian Neundorf d0354dd64f Fix quotation in PEP-0505 (#122)
The quotation which is explaining the None-aware expression in English was
closing the quote using two double quotes.
2016-10-27 00:45:25 +11:00
Nick Coghlan 54c54e9b20 PEP 531: minor updates
- fixed some formatting inconsistencies
- explain the reasoning behind ?else and ?or
2016-10-25 18:47:42 +10:00
Nick Coghlan 551e80bcd8 PEP 531: Existence checking operators
Based on the last round of PEP 505 discussions, I'm seeing a
lot more merit in the general idea, but have some strong opinions
on how to describe the concepts to current and new Python users.

Those opinions are different enough from what's currently in PEP
505 that I think writing a competing PEP is the most useful way to
articulate them.
2016-10-25 17:15:18 +10:00
Ivan Levkivskyi d309d32728 Soften restriction for runtime generics in PEP 484 (#120)
Fixes https://github.com/python/typing/issues/303.

See also https://github.com/python/mypy/pull/2302 (which removes the restriction from mypy).

As a motivation, in Python one always can substitute expressions, so that if ``IntNode = Node[int]; IntNode()`` works, then it is reasonable to also allow ``Node[int]``, but say that the first way is preferred.
2016-10-24 10:29:40 -07:00
Mariatta ae7020c262 Convert PEP 202 to reST (#121) 2016-10-23 12:15:09 -07:00
Guido van Rossum 2ec55d541d Change "iff" -> "if" in example docstrings. 2016-10-20 21:35:42 -07:00
Ivan Levkivskyi 68ef9a665b Update the type alias example in PEP 484 (#118) 2016-10-18 08:07:44 -07:00
Barry Warsaw 1cdddf8b00 Closes #38 (#116)
* Closes #38

* Updated workflow.

* Respond to review.

* s/clone/fork/

Use GitHub terminology rather than generic git terminology.
2016-10-15 14:38:43 +10:00
Barry Warsaw 6efb70f02a Strongly prefer reStructuredText. (#115) 2016-10-14 20:33:28 +10:00
Ned Deily 278df313c7 Update for 3.6.0b2 release 2016-10-10 21:09:41 -04:00
Ivan Levkivskyi 0f5e998985 Tweak the scope of type: ignore comment (#114)
Fixes python/typing#292
2016-10-10 13:20:42 -07:00
Brett Cannon 3ff642e658 Update the PEP 512 status list (#112) 2016-10-06 10:59:17 -07:00
Ivan Levkivskyi c1dc44b21f Updates for PEPs 484 and 483 (#111) 2016-09-30 16:25:26 -07:00
Ned Deily 202e6742dc Move b2 back one week 2016-09-30 16:18:37 -04:00