I see python allows null characters in its strings. So it's implementation is not based on null-terminated string? But C only support null-terminated strings. Could anybody help explain how python string is implemented internally? And where is the soruce code in python that support this? Thanks.
>>> sys.stdout.write('x\0y')
xy>>>