A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-March/033858.html below:

[Python-Dev] test_popen broken on Win2K

[Python-Dev] test_popen broken on Win2K [Python-Dev] test_popen broken on Win2KNeil Schemenauer nas@python.ca
Fri, 7 Mar 2003 13:21:18 -0800
Tim Peters wrote:
> Someone changed test_popen to "quote" the path to python:
> 
>     cmd = '"%s" -c "import sys;print sys.argv" %s' % (sys.executable,
> cmdline)
>            ^  ^
> 
> The double-quote characters above the carets are new.

Having to quote arguments to popen and system is a pet peave of mine.
99% of the time I don't not want or need the shell.  Is it possible to
write versions of system() and popen() that do not use the shell on
Windows?  I know it's possible on Unix systems.  It would be really nice
if both popen() and system() could take a sequence for the command and
arguments in addition to a string.

  Neil



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4