]> granicus.if.org Git - python/commit
When accessing the .value attribute of a c_wchar_p instance, and the
authorThomas Heller <theller@ctypes.org>
Mon, 30 Apr 2007 16:04:57 +0000 (16:04 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 30 Apr 2007 16:04:57 +0000 (16:04 +0000)
commit68bb9a1418f15eede43242eb3619ee5e4d0a85cb
tree899938f47ac6cfe8341d0d429a9d7e172246275f
parent5a901bd3cc396b17645d0d4012faf63db9e3ab42
When accessing the .value attribute of a c_wchar_p instance, and the
instance does not point to a valid wchar_t zero-terminated string,
raise a ValueError.  c_char_p does this already.

The ValueError message now contains the correct pointer address.

Will backport to release25-maint.
Modules/_ctypes/cfield.c