Antoine Pitrou <pit...@free.fr> added the comment: The recommended way is to use PyBuffer_FillInfo() (and then fill in any additional data if necessary), which will set the pointer and incref it itself.
I agree all this is a bit poorly documented. ---------- assignee: -> d...@python components: +Documentation -Interpreter Core nosy: +d...@python, pitrou stage: -> needs patch versions: +Python 2.7, Python 3.1 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10001> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com