5 Jul
2005
5 Jul
'05
12:40 p.m.
Thomas Heller:
Not only that, all the other flags like -O and -E are also in sys.argvu but not in sys.argv.
OK, new patch fixes these and the "-c" issue.
Those are nearly obsoleted by the subprocess module (although I do not know how that handles unicode.
z = subprocess.Popen(u"cmd /c echo \u0417") Traceback (most recent call last): File "<stdin>", line 1, in ? File "c:\zed\python\dist\src\lib\subprocess.py", line 600, in __init__ errread, errwrite) File "c:\zed\python\dist\src\lib\subprocess.py", line 791, in _execute_child startupinfo) UnicodeEncodeError: 'ascii' codec can't encode character u'\u0417' in
It breaks. The argspec is zzOOiiOzO:CreateProcess. position 12: ordinal not in range(128) Neil