[Python-Dev] internal weakref API should be Py_ssize_t?

Tim Peters tim.peters at gmail.com
Wed Aug 2 06:53:59 CEST 2006


[Neal Norwitz]
> I'm wondering if the following change should be made to Include/weakrefobject.h:

Yes.

> -PyAPI_FUNC(long) _PyWeakref_GetWeakrefCount(PyWeakReference *head);
> +PyAPI_FUNC(Py_ssize_t) _PyWeakref_GetWeakrefCount(PyWeakReference *head);
>
> And the 2 other files which use this (weakref obj and module).  Should
> this be changed now, wait for 2.6, or not worry about it?

+1 on biting the bullet for 2.5.


More information about the Python-Dev mailing list