[Python-bugs-list] [Bug #124764] P_DETACH advertised but not supported

noreply@sourceforge.net noreply@sourceforge.net
Wed, 6 Dec 2000 14:07:34 -0800


Bug #124764, was updated on 2000-Dec-06 13:21
Here is a current snapshot of the bug.

Project: Python
Category: Library
Status: Closed
Resolution: Invalid
Bug Group: Platform-specific
Priority: 5
Submitted by: brey
Assigned to : Nobody
Summary: P_DETACH advertised but not supported

Details: The os documentation (os-process.html) describes a P_DETACH mode for use with spawnv, which it says became available in version 1.52.  However, using version 2.0 on Windows, there is no such name in the os module and looking at the code in os.py, P_DETACH doesn't seem to be supported at all.  Did that feature go away? ever exist? hiding in an unspecified namespace? In any case, the docs and the code should be in sync.

Follow-Ups:

Date: 2000-Dec-06 13:26
By: gvanrossum

Comment:
Don't look at the source code for os.py; look in posixmodule.c.

It's really there; I just tried it (import os; print os.P_DETACH prints 4).

Which Python version did you download? From where?

-------------------------------------------------------

Date: 2000-Dec-06 14:07
By: brey

Comment:
My mistake.  I'm a Python brand-newby, and a newby mistake was mine.  I was using P_DETACH where I should have used os.P_DETACH.  I probably would have found the problem sooner had I not been confused by the os.py code.  Then to confuse me more, I noticed that an os.pyc file was generated, so, even though I had considered there might be another file that had more functionality, I discounted that hyphothesis.  Alas, 'twas not the case.

I downloaded Python from:
http://www.python.org/ftp/python/2.0/BeOpen-Python-2.0.exe

I didn't download the Python source code, so when I grepped for P_DETACH, I didn't have posixmodule.c to find it in.

Thanks for the quick response. Sorry for the bother.

-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=124764&group_id=5470