Record the rejection of PEP 336

This commit is contained in:
Raymond Hettinger 2005-06-17 17:43:00 +00:00
parent d8b3960b43
commit d88039828e
2 changed files with 10 additions and 2 deletions

View File

@ -107,7 +107,6 @@ Index by Category
S 332 Byte vectors and String/Unicode Unification Montanaro
S 334 Simple Coroutines via SuspendIteration Evans
S 335 Overloadable Boolean Operators Ewing
S 336 Make None Callable McClelland
S 337 Logging Usage in the Standard Library Dubner
S 338 Executing modules inside packages with '-m' Coghlan
S 341 Unifying try-except and try-finally Birkenfeld
@ -212,6 +211,7 @@ Index by Category
SR 317 Eliminate Implicit Exception Instantiation Taschuk
SR 326 A Case for Top and Bottom Values Carlson, Reedy
SR 329 Treating Builtins as Constants in the Standard Library Hettinger
SR 336 Make None Callable McClelland
SR 340 Anonymous Block Statements GvR
SR 346 User Defined ("with") Statements Coghlan
SR 666 Reject Foolish Indentation Creighton
@ -377,7 +377,7 @@ Numerical Index
I 333 Python Web Server Gateway Interface v1.0 Eby
S 334 Simple Coroutines via SuspendIteration Evans
S 335 Overloadable Boolean Operators Ewing
S 336 Make None Callable McClelland
SR 336 Make None Callable McClelland
S 337 Logging Usage in the Standard Library Dubner
S 338 Executing modules inside packages with '-m' Coghlan
I 339 How to Change CPython's Bytecode Cannon

View File

@ -15,6 +15,14 @@ Abstract
None should be a callable object that when called with any
arguments has no side effect and returns None.
BDFL Pronouncement
This PEP is rejected. It is considered a feature that None raises
an error when called. The proposal falls short in tests for
obviousness, clarity, explictness, and necessity. The provided Switch
example is nice but easily handled by a simple lambda definition.
See python-dev discussion on 17 June 2005.
Motivation