Real Problems with Python
Fredrik Lundh
effbot at telia.com
Wed Feb 9 15:03:32 EST 2000
[neelk at cswcasa.com provides an excellent
summary of some critical python warts]
just one footnote:
> 5. The type/class dichotomy, and the lack of a metaobject system.
>
> C types and Python classes are both types, but they don't really
> understand each other. C types are (kind of) primitive objects, in
> that they can't be subclassed, and this is of course frustrating
> for the usual over-discussed reasons. Also, if everything is an
> object, then subclassing Class becomes possible, which is basically
> all you need for a fully functional metaobject protocol. This
> allows for some extremely neat things.
note that you *can* implement real classes using relatively
clean C code. however, types are usually a better alternative,
since they provide low-level slots for most "magic" methods.
(after all, if performance isn't that critical, you might
as well stick to Python ;-)
</F>
More information about the Python-list
mailing list