Creating new classes on the fly
Alex Martelli
aleaxit at yahoo.com
Thu Oct 7 07:33:44 EDT 2004
Carlos Ribeiro <carribeiro at gmail.com> wrote:
...
> > They're not quite the same, if the bases tuple is empty or only has
> > classic classes. I would normally use the second form because new-style
> > classes are generally preferred.
>
> Question: why is it not pointed out clearly in the documentation? It
My guess is: because nobody ever submitted a documentation patch about
it.
> btw -- the documentation is lacking at *many* points when it comes to
> new style classes, metaclasses, descriptors, and the related
> protocols. I couldn't find a clear description of the class creation
> process there -- although there are lots of info in the Wiki... but
> there *should* be something on the docs, don't you think?
Yes, I agree with you, and I'm sure documentation patches dealing with
these problems would most likely be well received.
Alex
More information about the Python-list
mailing list