Comment on PEP-0238

Alex Martelli aleaxit at yahoo.com
Sat Jul 7 17:11:25 EDT 2001


"Guido van Rossum" <guido at python.org> wrote in message
news:cpelrskgrr.fsf at cj20424-a.reston1.va.home.com...
    ...
> The "div" keyword would be ideal except for the added complexity of
> adding a new keyword to the language -- do we need a separate warning
> phase here, too?
>
> (Hm.  For various reasons I'm very tempted to introduce 'yield' as a
> new keyword without warnings or future statements in Python 2.2, so
> maybe I should bite the bullet and add 'div' as well...)

I see pro's and con's, but, should you decide to go ahead, might
you PLEASE treat 'mod' just the same as 'div'...?  mod and div are
a great pair, as may be / and %, but having to use div and % would
be seriously hard to explain/remember/justify to newbies/...


Alex






More information about the Python-list mailing list