
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Or shlex.split, if you want it to be parsed more like a command line really would be parsed. |>> shlex.split('a huge argument "list of things"') ['a', 'huge', 'argument', 'list of things'] Tim Stebbing wrote: | Matt Feifarek wrote: | |> I've pretty much got this working okay (with a few false starts |> related to how args are put together... you can't send in a big long |> string; you literally have to make a list of argument words... what a |> PITA). | | | not that this is what your asking, but I just thought you might like to | know: | | args = ['a', 'long', 'list', 'of', 'annoying', 'PITA', 'args'] | | is less of a pita as: | | args = 'a long list of annoying PITA args'.split() | | -tjs | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows XP) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBGUDL3A5SrXAiHQcRAnI5AJ9ziX2LdUK22hrIq482lghaJaua6gCginq8 lFBOHYSMj5tGVZrVmLmQdII= =0rxp -----END PGP SIGNATURE-----