Language change and code breaks

Konrad Hinsen hinsen at
Wed Jul 11 21:16:39 CEST 2001

"Nick Perkins" <nperkins7 at> writes:

> but why not leave int/int->int alone,
> and use // for int//int->float.
> No code breaks, and it is almost as easy for the newbies.

Sounds like a good idea. Just the existence of two division operators
would help newbies to recognize that there is a nontrivial problem.
And a//b definitely beats (a+0.)/b, which does the trick, but is not
at all evident.

Konrad Hinsen                            | E-Mail: hinsen at
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-
Rue Charles Sadron                       | Fax:  +33-
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais

More information about the Python-list mailing list