Author eryksun
Recipients amaury.forgeotdarc, belopolsky, eryksun, meador.inge, memeplex
Date 2016-03-25.03:10:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458875430.09.0.687837558495.issue26565@psf.upfronthosting.co.za>
In-reply-to
Content
The `value` of a c_char_p or c_wchar_p pointer is a Python bytes or str object. Since `value` won't consistently be the address value, it may be better to introduce a read-only `as_void` attribute that can be implemented consistently for all pointer types (including function pointers). Its value would be the same as the `value` of a casted c_void_p (e.g. NULL is mapped to None). The new attribute would be added as a getset descriptor in Pointer_getsets and PyCFuncPtr_getsets. For simple pointer types, it would have to be added specially in PyCSimpleType_new.
History
Date User Action Args
2016-03-25 03:10:30eryksunsetrecipients: + eryksun, amaury.forgeotdarc, belopolsky, memeplex, meador.inge
2016-03-25 03:10:30eryksunsetmessageid: <1458875430.09.0.687837558495.issue26565@psf.upfronthosting.co.za>
2016-03-25 03:10:30eryksunlinkissue26565 messages
2016-03-25 03:10:29eryksuncreate