[issue38210] Intersection of dict view with iterator returns empty set

2021-07-14 Thread Dong-hee Na
Dong-hee Na added the comment: >Interestingly, this doesn't seem to have a negative effect on correctness as >the silently omitted unhashable I think so too. The error actually raises when adding the object into the set.

[issue38210] Intersection of dict view with iterator returns empty set

2021-07-14 Thread Łukasz Langa
Łukasz Langa added the comment: This caused an unintentional behavior change in the following code: >>> {1: 2}.items() & {1: {2: 3}}.items() set() Before this change, Python 3.6 - 3.8 behaved like this instead: >>> {1: 2}.items() & {1: {2: 3}}.items() Traceback (most recent call last):

[issue38210] Intersection of dict view with iterator returns empty set

2019-10-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset d97f1ce6dba6c4aa5614adc06ad2e0948709845c by Victor Stinner in branch 'master': bpo-38210: Fix compiler warning in dictobject.c (GH-16611) https://github.com/python/cpython/commit/d97f1ce6dba6c4aa5614adc06ad2e0948709845c -- nosy:

[issue38210] Intersection of dict view with iterator returns empty set

2019-10-07 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16199 pull_request: https://github.com/python/cpython/pull/16611 ___ Python tracker ___

[issue38210] Intersection of dict view with iterator returns empty set

2019-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was added. Do you mean any special? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38210] Intersection of dict view with iterator returns empty set

2019-10-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please add a test for this regression. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38210] Intersection of dict view with iterator returns empty set

2019-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Dong-hee for your fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38210] Intersection of dict view with iterator returns empty set

2019-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c38e725d17537b20ff090b1b5ec7db1820ff9b63 by Serhiy Storchaka (Dong-hee Na) in branch 'master': bpo-38210: Fix intersection operation with dict view and iterator. (GH-16602)

[issue38210] Intersection of dict view with iterator returns empty set

2019-10-06 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38210] Intersection of dict view with iterator returns empty set

2019-10-06 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +16190 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16602 ___ Python tracker ___

[issue38210] Intersection of dict view with iterator returns empty set

2019-09-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 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