[Zope3-dev] Nasty bugs

Guido van Rossum guido@python.org
Wed, 20 Mar 2002 13:15:53 -0500


> Steve Alexander wrote:
> >
> > What does code typically compare by identity? Here's the ones I can 
> > think of:
> > 
> >  * Things the code has itself created
> > 
> >  * Classes / types
> > 
> >  * None
> > 
> >  * Small integers
> > 
> >  * The empty tuple
> > 
> > 
> > The only one of those that is mutable that we might need to worry about 
> > is "Classes / types".
> 
> I forgot to add: module-level globals such as symbolic constants.

IMO that falls under "Things the code has itself created".

--Guido van Rossum (home page: http://www.python.org/~guido/)