shlex doesn't handle unicode input though, so, in general, it's not a good solution. Rick King Southfield MI > http://docs.python.org/library/shlex.html > > module shlex — Simple lexical analysis > New in version 1.5.2. > "The shlex class makes it easy to write lexical analyzers for simple > syntaxes resembling that of the Unix shell." >