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 Joshua Morton
Recipients Joshua Morton
Date 2016-05-08.04:24:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462681499.01.0.123702812837.issue26973@psf.upfronthosting.co.za>
In-reply-to
Content
Following the comments in python ideas [1], I'm submitting a bug report. In python 3, dictionary views (KeysView and ItemsView specifically) do not adhere to the same interface as Sets. Specifically, the __and__, __or__, __xor__, and __sub__ methods on Views will accept a non-set type (`{}.keys() | []`), while the same throws a TypeError on a Set. The suggested, not-backwards-compatible solution, was to have dictviews raise errors in the same way. 

[1] https://mail.python.org/pipermail/python-ideas/2016-April/039469.html
History
Date User Action Args
2016-05-08 04:24:59Joshua Mortonsetrecipients: + Joshua Morton
2016-05-08 04:24:59Joshua Mortonsetmessageid: <1462681499.01.0.123702812837.issue26973@psf.upfronthosting.co.za>
2016-05-08 04:24:58Joshua Mortonlinkissue26973 messages
2016-05-08 04:24:57Joshua Mortoncreate