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 eryksun
Recipients eryksun, iritkatriel, nullnil, theller, vladris
Date 2021-12-06.23:19:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638832775.88.0.740251230414.issue8161@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-12-06 23:19:35eryksunsetrecipients: + eryksun, theller, nullnil, vladris, iritkatriel
2021-12-06 23:19:35eryksunsetmessageid: <1638832775.88.0.740251230414.issue8161@roundup.psfhosted.org>
2021-12-06 23:19:35eryksunlinkissue8161 messages
2021-12-06 23:19:35eryksuncreate