object as a reserved keyword

Lawrence Oluyede raims at dot.com
Sun Jul 20 05:29:03 EDT 2003


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

Python 2.3c1 (#44, Jul 18 2003, 14:32:36) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class c(object): pass
...
>>> object = 4
>>> class c(object): pass
...
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: int() takes at most 2 arguments (3 given)
>>>

Lawrence




More information about the Python-list mailing list