Message5781
Logged In: YES
user_id=21627
I've already fixed it in PyXML, although the only way I
could find to fix it was to add an __iter__; I cannot take
away the __getitem__ since the code has to work in older
Python versions.
The solution I would prefer to see is that UserDict offers
a second class, say IterableUserDict, which would be for
educational purposes only; anybody who really wants a
dictionary that you can iterate over should inherit from
dictionary.
That also raises the question whether UserDict
applications in the standard library should be changed to
inherit from dictionary. The major incompatibility I can
see with doing so is that the .data member goes away.
|
|
Date |
User |
Action |
Args |
2007-08-23 13:55:35 | admin | link | issue448153 messages |
2007-08-23 13:55:35 | admin | create | |
|