metaclasses
Michael Hudson
mwh at python.net
Tue Jul 29 07:59:47 EDT 2003
Simon Burton <simonb at webone.com.au> 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 :-)
Cheers,
mwh
--
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