New submission from Serhiy Storchaka <[email protected]>:
In 3.8:
>>> {1: 2, 3: 4}.keys() & {1, 2}
{1}
In master:
>>> {1: 2, 3: 4}.keys() & iter([1, 2])
set()
The behavior was changed in issue27575.
----------
components: Interpreter Core
messages: 352705
nosy: rhettinger, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Intersection of dict view with iterator returns empty set
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue38210>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com