This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, loewis, schuppenies
Date 2008-06-26.09:00:30
SpamBayes Score 0.012486015
Marked as misclassified No
Message-id <1214470832.49.0.534069844242.issue3147@psf.upfronthosting.co.za>
In-reply-to
Content
> long's structure is 'lP PP l H'
No, it's a VAR-sized object, and ob_size is a Py_ssize_t, which is best
represented as a 'P' as you already did for other types. I suggest 'lP
PP P H'.

> the function size which is 'lp PP 9l'
According to Include/funcobject.h, there are nine PyObject*, the
description should end with "9P".

I think there are some other inconsistencies. For example, the tests for
'list' should be
        self.check_sizeof([], size(h + 'PPP'))
        self.check_sizeof([1, 2, 3], size(h + 'PPP') + 3*self.P)
for the same reasons as for the 'long' type (ob_size is a Py_ssize_t),
even if the total is the same thanks to alignment.

I agree it's very difficult to get it right...
History
Date User Action Args
2008-06-26 09:00:32amaury.forgeotdarcsetspambayes_score: 0.012486 -> 0.012486015
recipients: + amaury.forgeotdarc, loewis, schuppenies
2008-06-26 09:00:32amaury.forgeotdarcsetspambayes_score: 0.012486 -> 0.012486
messageid: <1214470832.49.0.534069844242.issue3147@psf.upfronthosting.co.za>
2008-06-26 09:00:31amaury.forgeotdarclinkissue3147 messages
2008-06-26 09:00:30amaury.forgeotdarccreate