[Python-Dev] ctypes: alignment of (simple) types

Amaury Forgeot d'Arc amauryfa at gmail.com
Tue Nov 8 00:39:27 CET 2011


Hi,

2011/11/7 Michael Walle <michael at walle.cc>

> What do you think about adding a special attribute '_align_' which, if set
> for
> a data type overrides the hardcoded align property of that type?
>

It's a good idea.  But you should also consider the other feature requests
around custom alignments.
IMO a good thing would be a way to specify a function that computes sizes
and alignments, that one can override to implement specific compiler
features.

-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20111108/69f0ba87/attachment.html>


More information about the Python-Dev mailing list