[Python-checkins] r79397 - in python/trunk: Doc/c-api/capsule.rst Doc/c-api/cobject.rst Doc/c-api/concrete.rst Doc/data/refcounts.dat Doc/extending/extending.rst Include/Python.h Include/cStringIO.h Include/cobject.h Include/datetime.h Include/py_curses.h Include/pycapsule.h Include/pyexpat.h Include/ucnhash.h Lib/test/test_sys.py Makefile.pre.in Misc/NEWS Modules/_ctypes/callproc.c Modules/_ctypes/cfield.c Modules/_ctypes/ctypes.h Modules/_cursesmodule.c Modules/_elementtree.c Modules/_testcapimodule.c Modules/cStringIO.c Modules/cjkcodecs/cjkcodecs.h Modules/cjkcodecs/multibytecodec.c Modules/cjkcodecs/multibytecodec.h Modules/datetimemodule.c Modules/pyexpat.c Modules/socketmodule.c Modules/socketmodule.h Modules/unicodedata.c Objects/capsule.c Objects/object.c Objects/unicodeobject.c PC/VS7.1/pythoncore.vcproj PC/VS8.0/pythoncore.vcproj PC/os2emx/python27.def PC/os2vacpp/python.def Python/compile.c Python/getargs.c

M.-A. Lemburg mal at egenix.com
Thu Mar 25 10:10:26 CET 2010


larry.hastings wrote:
> Author: larry.hastings
> Date: Thu Mar 25 01:54:54 2010
> New Revision: 79397
> 
> Log:
> Backported PyCapsule from 3.1, and converted most uses of
> CObject to PyCapsule.

Backporting PyCapsule is fine, but the changes you made to all
those PyCObject uses does not look backwards compatible.

The C APIs exposed by the modules (e.g. the datetime module)
are used in lots of 3rd party extension modules and changing
them from PyCObject to PyCapsule is a major change in the
module API.

> Added:
>    python/trunk/Doc/c-api/capsule.rst
>    python/trunk/Include/pycapsule.h
>    python/trunk/Objects/capsule.c
> Modified:
>    python/trunk/Doc/c-api/cobject.rst
>    python/trunk/Doc/c-api/concrete.rst
>    python/trunk/Doc/data/refcounts.dat
>    python/trunk/Doc/extending/extending.rst
>    python/trunk/Include/Python.h
>    python/trunk/Include/cStringIO.h
>    python/trunk/Include/cobject.h
>    python/trunk/Include/datetime.h
>    python/trunk/Include/py_curses.h
>    python/trunk/Include/pyexpat.h
>    python/trunk/Include/ucnhash.h
>    python/trunk/Lib/test/test_sys.py
>    python/trunk/Makefile.pre.in
>    python/trunk/Misc/NEWS
>    python/trunk/Modules/_ctypes/callproc.c
>    python/trunk/Modules/_ctypes/cfield.c
>    python/trunk/Modules/_ctypes/ctypes.h
>    python/trunk/Modules/_cursesmodule.c
>    python/trunk/Modules/_elementtree.c
>    python/trunk/Modules/_testcapimodule.c
>    python/trunk/Modules/cStringIO.c
>    python/trunk/Modules/cjkcodecs/cjkcodecs.h
>    python/trunk/Modules/cjkcodecs/multibytecodec.c
>    python/trunk/Modules/cjkcodecs/multibytecodec.h
>    python/trunk/Modules/datetimemodule.c
>    python/trunk/Modules/pyexpat.c
>    python/trunk/Modules/socketmodule.c
>    python/trunk/Modules/socketmodule.h
>    python/trunk/Modules/unicodedata.c
>    python/trunk/Objects/object.c
>    python/trunk/Objects/unicodeobject.c
>    python/trunk/PC/VS7.1/pythoncore.vcproj
>    python/trunk/PC/VS8.0/pythoncore.vcproj
>    python/trunk/PC/os2emx/python27.def
>    python/trunk/PC/os2vacpp/python.def
>    python/trunk/Python/compile.c
>    python/trunk/Python/getargs.c

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Mar 25 2010)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/
_______________________________________________
Python-checkins mailing list
Python-checkins at python.org
http://mail.python.org/mailman/listinfo/python-checkins


More information about the Python-checkins mailing list