Writing an end of string character in Python

Aahz Maruch aahz at panix.com
Thu May 31 17:39:11 CEST 2001

In article <PM00038598F48C0FE8 at unknown.unknown.dom>,
Charlie Clark  <charlie at begeistert.org> wrote:
>I have a slight bug with the python module for writing attributes in
>BeOS. String values need to be terminated with a "\O" in order for them
>to be correctly read by some applications but I read in PP2E that "\0"
>does not terminate the string in Python. Is there anyway I can force it

No, but you can write out a "\x00" any time you want.
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het Pythonista   http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"Characters exist to suffer, you know.  An author needs a little sadism
in her makeup."  --Brenda Clough

More information about the Python-list mailing list