[Python-ideas] Fwd: Why do equality tests between OrderedDict keys/values views behave not as expected?
Eric Snow
ericsnowcurrently at gmail.com
Fri Dec 18 12:19:46 EST 2015
On Fri, Dec 18, 2015 at 3:07 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> This makes no sense to me. The same counter-intuitive behaviour occurs
> for dict ValuesView as well:
OrderedDict re-uses dict's view types (but overrides __iter__). So it
had better be the same behavior! :)
-eric
More information about the Python-ideas
mailing list