extending the built in dictionary type

Steve Holden sholden at holdenweb.com
Thu Mar 22 22:54:25 EST 2001


"Robin Becker" <robin at jessikat.fsnet.co.uk> wrote in message
news:umfKujAz2iu6EwHa at jessikat.demon.co.uk...
> I'm interested in extending the built in dictionary. It's fairly simple
> to wrap, but seems incredibly hard to chain the methods. Is there any
> obvious way to use most of the built in methods whilst modifying a few.
>
> Seems that although it exists I can't chain the original mapp_methods of
> dictobject as that is not visible outside pythonxx.dll. So is there an
> easier way to get at these internal types?

See FAQ 5.18: How do I define and create objects corresponding to
built-in/extension types?

regards
 Steve






More information about the Python-list mailing list