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 gregory.p.smith, rhettinger
Date 2021-11-10.21:43:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1636580587.09.0.474557618004.issue45780@roundup.psfhosted.org>
In-reply-to
Content
This is a bug dictviews_sub(). It that incorrectly calls difference_update() instead of set_isub() which would perform the requisite type check.  

Note the KeysView ABC is correct and implements the type check.

This situation is unfortunate.  Adding the type check will help prevent future bugs;  however, it will likely also break some existing code that is currently working correctly.

My recommendation is to leave it as-is and live with it.  That is what we did with list.iadd() which has the same problem.
History
Date User Action Args
2021-11-10 21:43:07rhettingersetrecipients: + rhettinger, gregory.p.smith
2021-11-10 21:43:07rhettingersetmessageid: <1636580587.09.0.474557618004.issue45780@roundup.psfhosted.org>
2021-11-10 21:43:07rhettingerlinkissue45780 messages
2021-11-10 21:43:06rhettingercreate