Message407878
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 |
|
Date |
User |
Action |
Args |
2021-12-06 23:19:35 | eryksun | set | recipients:
+ eryksun, theller, nullnil, vladris, iritkatriel |
2021-12-06 23:19:35 | eryksun | set | messageid: <1638832775.88.0.740251230414.issue8161@roundup.psfhosted.org> |
2021-12-06 23:19:35 | eryksun | link | issue8161 messages |
2021-12-06 23:19:35 | eryksun | create | |
|