This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: No os.spawn*p* on Windows
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: chris_palmer, christian.heimes, tzot
Priority: normal Keywords:

Created on 2005-03-19 03:41 by chris_palmer, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg54419 - (view) Author: Chris Palmer (chris_palmer) Date: 2005-03-19 03:41
You have the other spawn* functions, and exec*p*, but
no spawn*p*. It exists on Linux. These functions should
either exist everywhere or nowhere.
msg54420 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2005-03-20 10:02
Logged In: YES 
user_id=539787

This is documented (see
http://docs.python.org/lib/os-process.html). Python lib has
many places where underlying platform controls availability
of functionality.
Suggest closing of this bug or converting it to wishlist item.
msg54421 - (view) Author: Chris Palmer (chris_palmer) Date: 2005-03-20 20:43
Logged In: YES 
user_id=1242303

Okay, I read the page you point to. It provides no
explanation, just a statement of the fact I had already
discovered. An explanation would be nice.

Don't you think it's strange that these three conditions
should hold:

1. os.exec*p* are supported on Windows;
2. Windows systems have a PATH environment variable with the
same meaning and use as UNIX; and yet
3. os.spawn*p* are not supported on Windows?

If there's some difference to how the environment is treated
or used between exec* and spawn* on Windows, wouldn't it be
easy to emulate the PATH-searching feature?

My options are to emulate the PATH-searching feature myself
and ignore os.spawn*p* on all platforms, or to use it when
it's present and only emulate it on Windows. The first
option is ridiculous, the second is ridiculous and ugly.

If you won't emulate the spawn*p* behavior -- it's three
lines of Python! -- it would help if you could at least
explain why, technically.

Thanks.
msg54422 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2005-03-21 09:17
Logged In: YES 
user_id=539787

This bug is *not* a bug, so it should be closed, and an
entry made in RFE (Request For Enhancements) aka wishlist.
Google has many pointers.  See for example
http://mail.python.org/pipermail/python-dev/2003-April/034473.html
.
Patches are welcome (either code or documentation).
msg59304 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-05 19:16
The subprocess is the successor of the various exec, popen and spawn
functions.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41717
2008-01-05 19:16:59christian.heimessetstatus: open -> closed
nosy: + christian.heimes
resolution: out of date
messages: + msg59304
2005-03-19 03:41:26chris_palmercreate