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

Gabriel Genellina gagsl-cvsnt at yahoo.com.ar
Thu Sep 14 15:52:07 EDT 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! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list