Issue1984

classification
Title: os.pipe() missing
Type: behaviour Severity: major
Components: Library Versions: Jython 2.7
process
Status: open Resolution: postponed
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, gary.aviv, xingyong, zyasoft
Priority: low Keywords:

Created on 2012-11-06.17:13:03 by gary.aviv, last changed 2014-06-18.17:36:32 by zyasoft.

Messages
msg7509 (view) Author: gary aviv (gary.aviv) Date: 2012-11-06.17:17:35
The pipe function is missing from os module; this is Linux JRE java1.7.0_b147-icedtea 64 bits. It is also missing from 2.5.3.  

import os
x,y = os.pipe()

we get:

AttributeError: 'module' object has no attribute 'pipe'
msg8663 (view) Author: Xing Yong (xingyong) Date: 2014-06-18.11:37:42
when can we fix this problem? Does anyone have some plan?
msg8664 (view) Author: Jim Baker (zyasoft) Date: 2014-06-18.17:36:31
Windows does support os.pipe, but apparently this is only useful for threads communicating in the *same* process.

However, the normal usage is with os.fork, which we cannot support on the JVM until the JVM itself supports such forking. (Something that has been advocated for Java 9.) So this makes supporting os.pipe very low priority.

With this analysis, I'm going to put this in "postponed" because the use case is so narrow and there are much better communication mechanisms. However, a pure Python patch that implements this in terms of StringIO is probably the right way to do it (see _socket._fileobject, not certain if there's something we could use that's more direct)
History
Date User Action Args
2014-06-18 17:36:32zyasoftsetresolution: postponed
messages: + msg8664
nosy: + zyasoft
2014-06-18 16:21:13santa4ntsettype: behaviour
2014-06-18 11:38:30xingyongsetversions: + Jython 2.7, - Jython 2.5
2014-06-18 11:37:42xingyongsetnosy: + xingyong
messages: + msg8663
2013-02-25 21:50:27fwierzbickisetpriority: low
nosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.2
2012-11-06 17:17:36gary.avivsetmessages: + msg7509
2012-11-06 17:13:03gary.avivcreate