[New-bugs-announce] [issue38210] Intersection of dict view with iterator returns empty set

Serhiy Storchaka report at bugs.python.org
Wed Sep 18 03:10:06 EDT 2019


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

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 <report at bugs.python.org>
<https://bugs.python.org/issue38210>
_______________________________________


More information about the New-bugs-announce mailing list