Changing the Division Operator -- PEP 238, rev 1.12

Cliff Crawford cjc26 at nospam.cornell.edu
Fri Jul 27 21:31:46 EDT 2001


* Guido van Rossum <guido at zope.com> menulis:
| 
| Semantics of Floor Division
| 
|     Floor division will be implemented in all the Python numeric
|     types, and will have the semantics of
| 
|         a // b == floor(a/b)
| 
| [...]
|     For complex numbers, // raises an exception, since float() of a
|     complex number is not allowed.

Shouldn't this read, "since floor() of a complex number is not allowed"?
That would make more sense in context..


-- 
Cliff Crawford            http://www.sowrong.org/
A sign should be posted over every campus toilet:
"This flush comes to you by courtesy of capitalism." 
                                 -- Camille Paglia



More information about the Python-list mailing list