Le 05-05-2006, Diez <[EMAIL PROTECTED]> nous disait:

> The thing you observe as accident is that sometimes "0 is 0" is true just
> because of an optimization of number objects allocation. Such things happen
> in the "real" world - other examples are string-interning in e.g. the JVM
> (and I bet they have a similar scheme to boxed number object allocation as
> python has).

String interning is available in Python too, by using the intern()
builtin function. 

-- 
Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to