This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients pitrou, serhiy.storchaka, skrah
Date 2018-05-31.14:15:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Well, the example would need exports:

>>> a = [bytes()]
>>> a.append(memoryview(a[0]))
>>> a.append(memoryview(a[1]))
>>> a.append(a)
>>> a
[b'', <memory at 0x1ad21f8>, <memory at 0x1b52348>, [...]]

The first memoryview has one export, so its refcount > 0.

Do I fundamentally misunderstand tp_clear() and tp_clear() can be called on objects with refcount > 0?
Date User Action Args
2018-05-31 14:15:09skrahsetrecipients: + skrah, pitrou, serhiy.storchaka
2018-05-31 14:15:09skrahsetmessageid: <>
2018-05-31 14:15:09skrahlinkissue33713 messages
2018-05-31 14:15:09skrahcreate