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 pitrou
Recipients amaury.forgeotdarc, nnorwitz, pitrou
Date 2008-08-28.10:14:31
SpamBayes Score 0.00011067345
Marked as misclassified No
Message-id <1219918481.48b67a91dd0af@imp.free.fr>
In-reply-to <1219917333.09.0.50810202471.issue3660@psf.upfronthosting.co.za>
Content
>   str(memoryview(b'character buffers are decoded to unicode'), 'utf-8')
> I tried another patch, but I'm not sure: I get lost between all these
> buffers... a Py_DECREF(self->view.obj) in memory_releasebuf() seems to work.

Could you open a separate issue for the latter? Adding a DECREF in
memory_releasebuf() isn't the right thing to do, because PyBuffer_Release()
already does such a DECREF. I think the problem is rather in memory_getbuf(), it
tries to take some strange shortcuts.

Oh, and I realize that memoryobject doesn't have tp_traverse and tp_clear, which
looks quite wrong...
History
Date User Action Args
2008-08-28 10:14:32pitrousetrecipients: + pitrou, nnorwitz, amaury.forgeotdarc
2008-08-28 10:14:32pitroulinkissue3660 messages
2008-08-28 10:14:31pitroucreate