Newbie asks: How to translate this line of C to Py

Erik Max Francis max at alcyone.com
Tue Jul 10 02:32:37 EDT 2001


Marcin 'Qrczak' Kowalczyk wrote:

> for command in ';'.split(line_ptr):

No, you mean

	for command in line_ptr.split(';'):
	    ...

The pattern you used is for the join method, not the split method.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Women are equal because they are not different any more.
\__/ Erich Fromm
    Product's Quake III Arena Tips / http://www.bosskey.net/
 Tips and tricks from the absolute beginner to the Arena Master.



More information about the Python-list mailing list