[Python-Dev] PyCObject_AsVoidPtr removed from python 3.2 - is this documented?

Nick Coghlan ncoghlan at gmail.com
Mon Mar 7 01:22:38 CET 2011


On Mon, Mar 7, 2011 at 9:09 AM, Barry Scott <barry at barrys-emacs.org> wrote:
> I see that PyCObject_AsVoidPtr has been removed from python 3.2.
> The 3.2 docs do not seem to explain this has happened and what
> to replace it with.
>
> I searched the 3.2 docs and failed to find PyCObject_AsVoidPtr.
> I looked at the whats new page and the API PEP. Did I miss
> where this is documented?

The CObject API was deprecated in Python 3.1 before its complete
removal in 3.2. Its deprecation and planned replacement with the
Capsule API was mentioned briefly in the 3.1 What's New document and a
deprecation warning and redirection were included in the 3.1
documentation:
http://docs.python.org/release/3.1.3/c-api/cobject.html

Details on the API replacement can be found here:
http://bugs.python.org/issue5630

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list