Message265110
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 |
|
Date |
User |
Action |
Args |
2016-05-08 04:24:59 | Joshua Morton | set | recipients:
+ Joshua Morton |
2016-05-08 04:24:59 | Joshua Morton | set | messageid: <1462681499.01.0.123702812837.issue26973@psf.upfronthosting.co.za> |
2016-05-08 04:24:58 | Joshua Morton | link | issue26973 messages |
2016-05-08 04:24:57 | Joshua Morton | create | |
|