[Python-3000] PyInt_ to PyLong_ rename
Thomas Heller
theller at ctypes.org
Wed Dec 5 13:20:55 CET 2007
Jim Jewett schrieb:
> On 12/3/07, Guido van Rossum <guido at python.org> wrote:
>> On Dec 3, 2007 12:12 PM, "Martin v. Löwis" <martin at v.loewis.de> wrote:
>> > >> Sure. However, you could also use
>> > >> _testcapi.PY_SSIZE_T_MAX, or
>> > >> ctypes.sizeof(ctypes.py_object).
>
>> > > Much less intuitive though.
>
>> > Actually, I find the ctypes version a more direct answer to the
>> > question "what is the address space?".
>
> (1) Is there a valid use case for this that needs to be supported
> with the "same code" across distributions before ctypes?
> (2) Is "without ctypes" still a supported build configuration,
> because of the crash-risks? More narrowly, is can we assume that they
> don't need the exact size/address unless they're doing extensions that
> have at least as much risk as ctypes?
Not sure about these. However, there is still struct.calcsize("P") and variants thereof.
Thomas
More information about the Python-3000
mailing list