Extending the dict class

Duncan Booth duncan.booth at invalid.invalid
Tue Aug 29 08:05:27 EDT 2006


chosechu wrote:

> Is it possible to force dictionary creation in these case to use
> my own dict class instead of the default one?

No

> I guess we can formulate this as a more generic question: if I
> want to modify the behaviour of the dictionary class, is there
> any way to do it interpreter-wide so that special dict constructors
> like those mentioned above use the modified version?

Not without modifying and recompiling the interpreter.



More information about the Python-list mailing list