extending the built in dictionary type

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


Look in the library and inherit from UserDict. A search on UserDict revelas
that this probably isn't quite as FAQtually recorded as it might be.

regards
 Steve

"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?
> --
> Robin Becker





More information about the Python-list mailing list