Christian Heimes added the comment:

It's not going to be easy and there is also no point to implement the
feature. The subprocess module requires either a real file or a PIPE. A
real file is needed because the subprocess module uses some low level
operation system functions for speed efficiency. It writes data directly
to a file descriptor (the number returned by fileno()).

In your case it seems have to interpreted None as 0 which is - by
accident - the file descriptor of stdout.

For small amounts of data use Popen(..., stdout=subprocess.PIPE) and use
out, err = communicate([stdin]), for large amounts of data you should
use a temporary file (tempfile module).

In your case please use the platform module instead of uname :)

----------
nosy: +tiran
resolution:  -> wont fix
status: open -> pending

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1631>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to