PEP 353 - preparation for Python 2.5

Matej Vela vela at debian.org
Tue Dec 5 19:57:40 CET 2006


Michael Ströder <michael at stroeder.com> writes:

> Michael Ströder wrote:
>> 
>> Could someone please check python-ldap to support PEP 353 (see
>> http://www.python.org/dev/peps/pep-0353/) and create a patch for the
>> changes required?
>
> I've committed some changes regarding PEP 353. I'd be glad if someone
> could test python-ldap pulled from CVS on a 64-bit platform.

A couple of fixes attached:

  * More instances of s/int/Py_ssize_t/ (some of these are unlikely to
    matter in practice, but might make automated testing easier).

  * Define PY_SSIZE_T_CLEAN before including <Python.h> to get the new
    semantics for 's#' and 't#'.  I've put this in Modules/common.h, and
    included that instead of <Python.h> from the rest of the code.

Other than that, seems to work fine on IA64.

Cheers,

Matej
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pep-0353.diff
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20061205/840575f3/attachment.ksh>


More information about the python-ldap mailing list