[pypy-dev] long.__itemsize__

Antonio Cuni anto.cuni at gmail.com
Tue Dec 21 12:31:14 CET 2010


On 21/12/10 12:05, Maciej Fijalkowski wrote:

>> __itemsize__ - in bytes, corresponds to item size field in the types
>> definition structure.
>>
>> It's a field for types.
>> See:
>>    http://docs.python.org/c-api/typeobj.html#tp_itemsize
>>
> 
> Well... Those are docs for C API. It doesn't say it's exposed at
> applevel nor since which version. (Also, to be precise, C API is known
> to be implementation specific)

Moreover, I don't think we could give it a sane semantics on PyPy, given that
the same applevel type can be potentially implemented by many different low
level structures with different sizes.

ciao,
Anto



More information about the Pypy-dev mailing list