[Python-Dev] Add const to python API - issue 6952

Barry Scott barry at barrys-emacs.org
Tue Oct 20 23:03:39 CEST 2009

On 20 Oct 2009, at 04:35, Martin v. Löwis wrote:

>> The patch I developed for comment only adds const to the input
>> parameters and used casts to
>> allow output parameters to stay without the const.
> What specific APIs are you talking about here?

Checking my patch I have two functions that need to
have output params changed to const to avoid casting.

	PyOS_strtoul			- ptr
	PyLong_FromString 	- pend


More information about the Python-Dev mailing list