Tuple assignment and generators?
Alexandre Fayolle
alf at merlin.fayauffre.org
Fri May 5 05:47:19 EDT 2006
Le 05-05-2006, Diez <deets at nospam.web.de> 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
More information about the Python-list
mailing list