[Python-checkins] r60504 - python/trunk/Modules/posixmodule.c

"Martin v. Löwis" martin at v.loewis.de
Sat Feb 2 02:05:01 CET 2008


> There probably are more int-like types than characters available for format
> strings, so the approach I would take is the use the 'O&' format and
> write the conversion function myself.

I still don't see why any of this is necessary. Can't you just parse
it in a Py_LONG_LONG where available, and into an int elsewhere? Then
check whether the value is out of range for pid_t, by assigning to
pid_t and then comparing.


More information about the Python-checkins mailing list