[issue45780] dict. keys view behaviour diverges from set()

2021-11-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a bug dictviews_sub(). It that incorrectly calls difference_update() instead of set_isub() which would perform the requisite type check. Note the KeysView ABC is correct and implements the type check. This situation is unfortunate. Adding the t

[issue45780] dict. keys view behaviour diverges from set()

2021-11-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Joshua pointed out that https://bugs.python.org/issue26973 appears to cover this. we rejected the idea of changing it at the time. it'd still be nice. -- ___ Python tracker

[issue45780] dict. keys view behaviour diverges from set()

2021-11-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: dict. keys view behavious diverges from set() -> dict. keys view behaviour diverges from set() ___ Python tracker ___ __