Commit Graph

6 Commits

Author SHA1 Message Date
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
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