Michael Hudson mwh at
Tue Jul 29 13:59:47 CEST 2003

Simon Burton <simonb at> writes:

> It seems this is a more general way to build classes than inheritance.
> Is this a reasonable viewpoint?

Yes, in a sense a class statement is just syntactic sugar for what you
wrote.  Class statements are a bit more readable, though :-)


 As it seems to me, in Perl you have to be an expert to correctly make
 a nested data structure like, say, a list of hashes of instances.  In
 Python, you have to be an idiot not  to be able to do it, because you
 just write it down.             -- Peter Norvig, comp.lang.functional

More information about the Python-list mailing list