On Thu, May 07, 2015 at 03:12:58PM -0500, Skip Montanaro wrote:
I haven't seen anyone else mention it, so I will point out: interoperability with C. In C, strings are NUL-terminated. PyStringObject instances do (or used to) have NUL-terminated strings in them. According to unicodeobject.h, that seems still to be the case:
How does that work? Python strings can contain embedded NULs:
s = u"abc\0def"