What is a type error?
Darren New
dnew at san.rr.com
Mon Jul 17 13:19:44 EDT 2006
Marshall wrote:
> I would propose that variables have identity, and values do not.
> In part this is via the supplied definition of identity, in which, when
> you change one thing, if something else changes as well, they
> share identity.
Maybe you gave a better definition the first time, but this one doesn't
really hold up.
> of equality here is too narrow; it is only necessary to show that
> two things both change, not that they change in the same way.)
If I change X, then Y[X] changes also. I don't think X is identical to Y
or Y[X], nor is it an alias of either. I think that's where the
equality comes into it.
--
Darren New / San Diego, CA, USA (PST)
This octopus isn't tasty. Too many
tentacles, not enough chops.
More information about the Python-list
mailing list