7 Feb
2000
7 Feb
'00
11:11 p.m.
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