Explaining names vs variables in Python

Jussi Piitulainen jussi.piitulainen at helsinki.fi
Wed Mar 2 08:11:39 EST 2016


Chris Angelico <rosuav at gmail.com> writes:

> 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.

Rifles are not mines. A rifle hurts you from a distance. A mine hurts
you when you step on it.



More information about the Python-list mailing list