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 rhettinger, yahya-abou-imran
Date 2018-01-11.08:35:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It would be okay to let ValuesView inherit from Collection.

Am marking this a 3.7 only because it isn't important to anyone's actual code and there is no known use case.  Technically, it isn't even a bug.  The __contains__ method is supported implicitly (as it is for many classes that just define __iter__), so there is no requirement that this be recognized as a Collection.  Also, the existing behavior was explicitly tested (see line 848 in Lib/test/test_collections).

I'm going forward with this because it does offer a sense of neatness (in comparison to KeysView and ItemsView) and it might avoid a pedantic StackOverflow question somewhere down the line.
Date User Action Args
2018-01-11 08:35:05rhettingersetrecipients: + rhettinger, yahya-abou-imran
2018-01-11 08:35:05rhettingersetmessageid: <>
2018-01-11 08:35:05rhettingerlinkissue32467 messages
2018-01-11 08:35:05rhettingercreate