[Zope] Base class in Python
Hung Jung Lu
hungjunglu@hotmail.com
Mon, 07 Feb 2000 15:11:30 PST
Hi,
In Java, all classes are subclasses of the "Object"
class.
Is there something like that in Python? I find it
kind of useful to have some generic class so I can
store things into its attributes easily. E.g:
a = generic()
a.b = 3
a.c ='Hallo'
This is nicer than using a dictionary. At this moment
I have to define
class generic:
def __init__(self):
pass
Not really bothersome, but is there a more
straightforward way of doing it?
Hung Jung
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com