[EMAIL PROTECTED] wrote:
>>> from shlex import split >>> split("this is a test #with a comment") ['this', 'is', 'a', 'test', '#with', 'a', 'comment'] >>> split("this is a test #with a comment", comments=True) ['this', 'is', 'a', 'test'] >>> split("this is a '#gnarlier' test #with a comment", comments=True) ['this', 'is', 'a', '#gnarlier', 'test']http://docs.python.org/library/shlex.html
It would be nice to have this example included in the module docs... Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list
