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 ncoghlan
Recipients ncoghlan
Date 2012-10-31.14:33:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351694000.44.0.179883669733.issue16373@psf.upfronthosting.co.za>
In-reply-to
Content
Try these in 3.3 (or Python 3.2 for the latter):

    set() < collections.ChainMap().keys()
    set() < collections.UserDict().keys()

Both fail with max recursion depth exceeded.

Given that both exhibit this behaviour, the core of the problem is quite possibly in MutableMapping.

(Uncovered while attempting to find a tidier ChainMap-based way to implement __subclasshook__ checks for ducktyping based on multiple methods)
History
Date User Action Args
2012-10-31 14:33:20ncoghlansetrecipients: + ncoghlan
2012-10-31 14:33:20ncoghlansetmessageid: <1351694000.44.0.179883669733.issue16373@psf.upfronthosting.co.za>
2012-10-31 14:33:20ncoghlanlinkissue16373 messages
2012-10-31 14:33:20ncoghlancreate