Message318316
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:09 | skrah | set | recipients:
+ skrah, pitrou, serhiy.storchaka |
2018-05-31 14:15:09 | skrah | set | messageid: <1527776109.8.0.682650639539.issue33713@psf.upfronthosting.co.za> |
2018-05-31 14:15:09 | skrah | link | issue33713 messages |
2018-05-31 14:15:09 | skrah | create | |
|