Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Sorry, the roundup e-mail interface ate some lines of code:
>>> b = b'' >>> sys.getrefcount(b) 30 >>> m = memoryview(b) >>> sys.getrefcount(b) 32 >>> del m >>> sys.getrefcount(b) 31 It doesn't happen with bytearrays, so I suspect it's that you only DECREF when releasebuffer method exists: >>> b = bytearray() >>> sys.getrefcount(b) 2 >>> m = memoryview(b) >>> sys.getrefcount(b) 4 >>> del m >>> sys.getrefcount(b) 2 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3139> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com