Message71146
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 |
|
Date |
User |
Action |
Args |
2008-08-14 19:33:53 | pitrou | set | recipients:
+ pitrou, lemburg, loewis, barry, teoliphant, amaury.forgeotdarc, donmez, benjamin.peterson, gpolo |
2008-08-14 19:33:53 | pitrou | set | messageid: <1218742433.69.0.60120834408.issue3139@psf.upfronthosting.co.za> |
2008-08-14 19:33:53 | pitrou | link | issue3139 messages |
2008-08-14 19:33:53 | pitrou | create | |
|