How do I converted a null (0) terminated string to a Python string?

Gabriel Genellina gagsl-cvsnt at
Thu Sep 14 21:52:07 CEST 2006

At Thursday 14/9/2006 11:45, Michael wrote:

>Since I'm new to Python, I'm having trouble understanding what this
>means (see below). Would appreciate any help.
>if strg[-1] == "\0":
>     strg = strg[:-1]

The Python Tutorial will answer your questions, it is enlightning and 
easy to follow.

Gabriel Genellina
Softlab SRL 

Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!

More information about the Python-list mailing list