terminological obscurity

Elaine Jackson elainejackson7355 at home.com
Thu May 20 22:49:15 EDT 2004


Some questions from a curious monkey.

All tuple methods are also list methods, and most list methods are also tuple
methods; among those that are NOT also tuple methods, there are exactly two
('count' and 'index') that do not involve mutation. Is there any special reason
why they AREN'T also tuple methods?

#################################################################

A question about terminology ('namespace'):

>>> prince=tuple()
>>> king=[prince]
>>> del prince

At this point, does the object formerly known as prince belong to the namespace
implemented by globals()? More generally, is there a terminological way to
distinguish between (1) a function from a set of names into a set of objects,
and (2) the aforementioned set of objects?

#################################################################

Is there a handy noun that refers to sameness of identity in the same way that
'equality' refers to sameness of value? ('Identicalness' is pretty clumsy, and
'identity' is confusing, since it already has a meaning that is closely related
but needs to be kept distinct.)

#################################################################

A question about terminology ('name'):

Suppose X is a container that contains n items (incidentally, is 'items' the
right term?) and i in an integer with 0<=i<=n. Does " X[i] " count as a 'name'?





More information about the Python-list mailing list