[issue33713] memoryview can set an exception in tp_clear

Serhiy Storchaka report at bugs.python.org
Thu May 31 09:03:11 EDT 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

The GC calls tp_clear() if the memoryview is a part of the reference loop.

a = [memoryview(...)]
a.append(a)
del a

The GC will call tp_clear() of the list or the memoryview. What will be called first is not specified.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33713>
_______________________________________


More information about the Python-bugs-list mailing list