Sebastian Ramacher <[email protected]> added the comment:
That is definitely not python's job. That is the duty of your shell and python
should never expand that.
And it would lead to platform specific behavior as one can see with the
following script:
import sys
import subprocess
if __name__ == "__main__":
if len(sys.argv) == 1:
subprocess.Popen([sys.executable, __file__, "foo", "*"])
else:
print sys.argv[1:]
With setargv.obj the argument would be expanded on Windows whereas on any other
platform it just prints [foo, *].
----------
nosy: +sebastinas
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12505>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com