New submission from Dennis Sweeney <sweeney.dennis...@gmail.com>:
Similar to https://bugs.python.org/issue39453, but with deques: Python 3.9.0a3+: >>> from collections import deque >>> class A: ... def __eq__(self, other): ... L.clear() ... return NotImplemented ... >>> L = [A(), A(), A()] >>> 17 in L False >>> L = deque([A(), A(), A()]) >>> 17 in L (Crashes with "Unhandled exception thrown: read access violation.") ---------- components: Library (Lib) messages: 361642 nosy: Dennis Sweeney priority: normal severity: normal status: open title: collections.deque.__contains__ and .count should hold strong references. type: crash versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39590> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com