[pypy-dev] long.__itemsize__
Maciej Fijalkowski
fijall at gmail.com
Tue Dec 21 12:31:59 CET 2010
On Tue, Dec 21, 2010 at 1:31 PM, Antonio Cuni <anto.cuni at gmail.com> wrote:
> 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.
>
Not even "potentially", it actually is in some places.
More information about the Pypy-dev
mailing list