object as a reserved keyword

Erik Max Francis max at alcyone.com
Sun Jul 20 05:39:07 EDT 2003


Lawrence Oluyede wrote:

> Does it worth to make "object" keyword a reserved one?
> I'd like to avoid oddities like this:

It's no different from overriding any of the builtins with a
non-standard value:

>>> int = float
>>> float = str
>>> str = lambda x: none
>>> str = lambda x: None
>>> file = 'elif'      

If someone wants to be abusive, he can.  The idea behind Python is that
everyone will behave like adults, so there's little need to worry about
these kinds of things.

-- 
   Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
 __ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/  \ Do we really want to go to Mars / Do we really want to try
\__/  Cassandra Wilson




More information about the Python-list mailing list