Language change and code breaks

Konrad Hinsen hinsen at cnrs-orleans.fr
Wed Jul 11 15:16:39 EDT 2001


"Nick Perkins" <nperkins7 at home.com> 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.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                            | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
-------------------------------------------------------------------------------



More information about the Python-list mailing list