grante at visi.com
Wed Jul 23 15:50:52 CEST 2003
In article <slrnbhrqtj.9jf.bignose-hates-spam at iris.polar.local>, Ben Finney wrote:
>> What I need is an exact and unambiguous algorithm for determining when
>> an assignment will change the id of the variable
> As I understand it, this is specific to the implementation of each type.
> The only sensible way to code is as if the identity of an object, on
> assignment, were completely unpredictable.
> The examples you gave showed that integers share identity with other
> integers of the same value, while floats do not.
I believe that's only true for small integers, isn't it?
Grant Edwards grante Yow! I want to TAKE IT
at HOME and DRESS IT UP in
visi.com HOT PANTS!!
More information about the Python-list