Newbie asks: How to translate this line of C to Py
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Tue Jul 10 02:27:51 EDT 2001
Tue, 10 Jul 2001 12:31:52 +0800, Steve S.L. Wong <steve at hkit.net> pisze:
> while (command = strtok(line_ptr,";"),line_ptr=0,command) {
> }
for command in ';'.split(line_ptr):
In Python versions earlier than 2.0 you can
import string
at the beginning and then:
for command in string.split(line_ptr, ';'):
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list