Eryk Sun <eryk...@gmail.com> added the comment:
This appears to be misreported. The implementation in 3.1.2rc1 looks correct to me [1]. Either way, it's out of date. That said, the emulation of a simple type in an aggregate type is still incomplete nowadays. It's not implemented when a c_char or c_wchar array type is itself the type of an array. It's also inconsistent with simple types because the automatic get-set conversion isn't disabled for subclasses of c_char and c_wchar array types. For a subclass, one should have to use the `value` attribute. --- [1] https://github.com/python/cpython/blob/v3.1.2rc1/Modules/_ctypes/cfield.c#L110-L137 ---------- nosy: +eryksun resolution: -> out of date stage: needs patch -> resolved status: pending -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue8161> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com