converting lists to strings to lists

Eric Deveaud edeveaud at pasteur.fr
Wed Apr 12 11:48:55 EDT 2006


robin wrote:
>  yo!
> 
>  thank you everone! here's how i finally did it:
>  converting the string into a list:
> 
>  	input = net.receiveUDPData()
>  	input = list(eval(input[0:-2]))

no pun intented but as you did not know how to use split and join, 
please please DON'T USE eval

	Eric



More information about the Python-list mailing list