Make default superclass 'object' if not specified?
Robert Oschler
no_replies at fake_email_address.invalid
Mon Jun 9 21:01:38 EDT 2003
I just had an incident where I was puzzled over __slots__. I had defined
__slots__ for a new class definition I created, yet instances of the class
were accepting assignments to attributes not in the __slots__ list. I had
forgotten to derive the new class from 'object'. Is there a way to make the
default superclass for all defined classes 'object' if none is specified?
thx
--
Robert Oschler,
Android Technologies, Inc.
http://www.androidtechnologies.com
- The home of Off-Book! (tm)
The scene memorization tool for Actors and Actresses!
More information about the Python-list
mailing list