[Python-checkins] python/nondist/peps pep-0000.txt, 1.322, 1.323 pep-0303.txt, 1.2, 1.3

rhettinger@users.sourceforge.net rhettinger at users.sourceforge.net
Fri Jun 17 22:19:28 CEST 2005


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17764
Modified Files:
	pep-0000.txt pep-0303.txt 
Log Message:
Reject PEP 303.
Index: pep-0000.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0000.txt,v
retrieving revision 1.322
retrieving revision 1.323
diff -u -d -r1.322 -r1.323
--- pep-0000.txt	17 Jun 2005 17:43:00 -0000	1.322
+++ pep-0000.txt	17 Jun 2005 20:19:25 -0000	1.323
@@ -92,7 +92,6 @@
 S 298 The Locked Buffer Interface Heller
 S 299 Special __main__() function in modules Epler
 S 302 New Import Hooks JvR
- S 303 Extend divmod() for Multiple Divisors Bellman
 S 304 Controlling Generation of Bytecode Files Montanaro
 S 310 Reliable Acquisition/Release Pairs Hudson, Moore
 S 312 Simple Implicit Lambda Suzi, Martelli
@@ -205,6 +204,7 @@
 SR 288 Generators Attributes and Exceptions Hettinger
 SR 295 Interpretation of multiline string constants Koltsov
 SR 296 Adding a bytes Object Type Gilbert
+ SR 303 Extend divmod() for Multiple Divisors Bellman
 SR 308 If-then-else expression GvR, Hettinger
 SR 313 Adding Roman Numeral Literals to Python Meyer
 SD 316 Programming by Contract for Python Way
@@ -344,7 +344,7 @@
 S 299 Special __main__() function in modules Epler
 SF 301 Package Index and Metadata for Distutils Jones
 S 302 New Import Hooks JvR
- S 303 Extend divmod() for Multiple Divisors Bellman
+ SR 303 Extend divmod() for Multiple Divisors Bellman
 S 304 Controlling Generation of Bytecode Files Montanaro
 SF 305 CSV File API Montanaro, et al
 I 306 How to Change Python's Grammar Hudson
Index: pep-0303.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0303.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pep-0303.txt	31 Dec 2002 16:02:49 -0000	1.2
+++ pep-0303.txt	17 Jun 2005 20:19:25 -0000	1.3
@@ -3,7 +3,7 @@
 Version: $Revision$
 Last-Modified: $Date$
 Author: Thomas Bellman <bellman+pep-divmod at lysator.liu.se>
-Status: Draft
+Status: Rejected
 Type: Standards Track
 Content-Type: text/plain
 Created: 31-Dec-2002
@@ -17,6 +17,21 @@
 allowing it to take multiple divisors, chaining several calls to
 divmod() into one.
 
+Pronouncement
+
+ This PEP is rejected. Most uses for chained divmod() involve a
+ constant modulus (in radix conversions for example) and are more
+ properly coded as a loop. The example of splitting seconds
+ into days/hours/minutes/seconds does not generalize to months
+ and years; rather, the whole use case is handled more flexibly and
+ robustly by date and time modules. The other use cases mentioned
+ in the PEP are somewhat rare in real code. The proposal is also
+ problematic in terms of clarity and obviousness. In the examples,
+ it is not immediately clear that the argument order is correct or
+ that the target tuple is of the right length. Users from other
+ languages are more likely to understand the standard two argument
+ form without having to re-read the documentation. See python-dev
+ discussion on 17 June 2005.
 
 Specification
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /