New submission from Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: Two problems with memoryview: - The buffer interface of memoryview leaks a reference: str(memoryview(b'text'), 'utf-8')
- memoryview does not implement tp_traverse and tp_clear, so reference cycle cannot be collected, as with: import gc class MyBuf(bytes): pass def f(): buf = MyBuf(b'abc') m = memoryview(buf) buf.m = m gc.collect();gc.collect();gc.collect() each call to f() leaks 6 references. ---------- messages: 72078 nosy: amaury.forgeotdarc priority: release blocker severity: normal status: open title: memoryview leaks references versions: Python 3.0 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3712> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com