Explaining names vs variables in Python
Marko Rauhamaa
marko at pacujo.net
Wed Mar 2 08:39:36 EST 2016
Chris Angelico <rosuav at gmail.com>:
> Python defines that every object has an identity, which can be
> represented as an integer. Since this is an intrinsic part of the
> object, no two distinct objects can truly have identical
> characteristics. Python's objects are like rifles - there are many
> like it, but this one is mine.
How can you be sure Python isn't returning the same id value for two
distinct objects?
Marko
More information about the Python-list
mailing list