[Tutor] A Million Sevens

Andreas Kostyrka andreas at kostyrka.org
Fri Nov 24 23:20:46 CET 2006

* Chris Hengge <pyro9219 at gmail.com> [061119 00:44]:
> That must be part of Pythons shiny ability of dynamic data types? Must be a
> messy operation to change data-types like that.. I think I'll just do my
> best to work with the right data-types the whole time ;D

Well, huge miss understanding:

a = b + c

=> a gets a reference to a newly created object containing the sum of
b and c.

a += b

=> a again gets a reference to a new object.

So there is not much point in trying to apply performance experiences
from other languages like C++ or Java.


More information about the Tutor mailing list