Comment on PEP-0238

Aahz Maruch aahz at panix.com
Sun Jul 8 00:24:06 CEST 2001


In article <cphewokhez.fsf at cj20424-a.reston1.va.home.com>,
Guido van Rossum  <guido at python.org> wrote:
>aahz at panix.com (Aahz Maruch) writes:
>>
>> I'm in agreement with Guido that at least two releases are necessary
>> (I also agree that it could be two warning releases).  But I think
>> Guido's step 3 (if used) should be changed to the semantically equivalent
>> 
>>     In Python 2.4, integer division with the '/' operator raises an
>>     exception.  This exception can be caught as usual, but the
>>     programmer should prepare for the next release of Python by either
>>     using the div() function or by using the future directive to get
>>     floating point division.
>
>Oh, Aazh!  I wasn't writing a formal specification, I was sketching a
>plan.  In that context, using "make it an error" is the right level of
>detail.  Everybody can fill in for themselves that that means it's an
>exception, since that's how we typically signal errors in Python.

Given that the person who followed up to you didn't seem to quite get
this, I figured it was a worthwhile clarification.  <shrug>
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

So much Astroglide.  So little time.



More information about the Python-list mailing list