simultaneous assignment

Edward Elliott nobody at 127.0.0.1
Tue May 2 16:58:42 EDT 2006


Heiko Wundram wrote:
> Integer and string objects
> are immutable in Python, so why'd you want to have different IDs for an
> object of the same value? It's the value you're working with in a program,
> not the objects ID. At least it should be, if you're truly intent on
> working with the (pseudo-random) object-ID, something with your design is
> really, really broken.

Hence I said, this is an academic exercise.



More information about the Python-list mailing list