Message142276
I don't think that it's a bug, but a feature.
Example:
buffer=ctypes.create_string_buffer(4)
buffer.value='a\0bc'
print("buffer.value=%r" % buffer.value)
print("buffer.raw=%r" % buffer.raw)
displays
buffer.value='a'
buffer.raw='a\x00bc'
Sorry, I don't know how to get the raw value of a c_char array in a structure. You should maybe use another type. |
|
Date |
User |
Action |
Args |
2011-08-17 13:16:23 | vstinner | set | recipients:
+ vstinner, Rafal.Dowgird |
2011-08-17 13:16:23 | vstinner | set | messageid: <1313586983.83.0.116425424219.issue12769@psf.upfronthosting.co.za> |
2011-08-17 13:16:23 | vstinner | link | issue12769 messages |
2011-08-17 13:16:23 | vstinner | create | |
|