Python argv and special characters

Neil Hodgson nyamatongwe+thunder at gmail.com
Fri Sep 23 04:03:37 EDT 2005


Jakob Simon-Gaarde:

> How can I ensure a safe passing of arguments maybe having speciel
> characters within.

    Use ctypes to call the Windows GetCommandLine function. The 
CommandLineToArgvW function can be used to break up the command line 
string into arguments.

    Neil



More information about the Python-list mailing list