Harry George at
Thu Jul 24 22:29:14 CEST 2003

"Ken Fettig" <kfettig at> writes:

> Does Python have an equivelent to the Java StringTokenizer? If so, what is
> it and how do you implement it?
> Thanks
> Ken Fettig
> kenfettig at
> kfettig at

See shlex (in the main distribution) or see a variety of lexer/parser
tools such as Ply,,

shlex is about the level of complexity you want.  See the Library
Reference Manual for instructions.

-- at
6-6M31 Knowledge Management
Phone: (425) 342-5601

More information about the Python-list mailing list