This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients
Date 2001-08-07.06:16:59
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2007-08-23 13:55:35adminlinkissue448153 messages
2007-08-23 13:55:35admincreate