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 rhettinger
Recipients Jim.Jewett, Joshua.Chin, ethan.furman, pitrou, r.david.murray, rhettinger
Date 2014-11-05.08:17:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> However, doing the check on 'other' and raising a TypeError
> with an appropriate message would still be better 

Let's be clear.  These are duck-typed methods.  A type check is inappropriate.  Anything with o.items() is allowed regardless of type.

Also, I generally won't approve changes to existing APIs without compelling real-world use cases to motivate the design change.  Otherwise, you just create unnecessary churn and consternation.
Date User Action Args
2014-11-05 08:17:29rhettingersetrecipients: + rhettinger, pitrou, r.david.murray, ethan.furman, Jim.Jewett, Joshua.Chin
2014-11-05 08:17:29rhettingersetmessageid: <>
2014-11-05 08:17:29rhettingerlinkissue22766 messages
2014-11-05 08:17:29rhettingercreate