[XML-SIG] FIXED: Accessing DOM nodes in Python

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Thu, 5 Oct 2000 09:32:26 +0200

> I have to figure out where the appropriate place is to trim the NULL
> byte from the end of each line and things should be cool.

I'd say it's in the C API, when it creates Python objects. The
terminating 0 should not be counted towards the size of the string if
you are using PyString_FromStringAndSize; you better use
PyString_FromString in this case.