[issue3687] Popen() object stdout attribute reassignment behaviour

2021-12-05 Thread Irit Katriel


Irit Katriel  added the comment:

The situation is the same in 3.11, both doc and implementation.

--
nosy: +iritkatriel
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 
3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3687] Popen() object stdout attribute reassignment behaviour

2016-12-05 Thread Martin Panter

Changes by Martin Panter :


--
stage:  -> needs patch
versions: +Python 3.5, Python 3.6, Python 3.7 -Python 2.6, Python 3.1, Python 
3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3687] Popen() object stdout attribute reassignment behaviour

2016-11-23 Thread Mohammad Maaz Khan

Mohammad Maaz Khan added the comment:

Hi, I want to update the doc for this. This will be my first attempt to update 
the documentation.

--
nosy: +maaz92

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3687] Popen() object stdout attribute reassignment behaviour

2010-06-17 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3687
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3687] Popen() object stdout attribute reassignment behaviour

2010-06-16 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

While it could be argued that it is 'obvious' that changing the stdin, stdout, 
stderr, and pid of a processes cannot work, I agree that a small addition would 
be good. In 17.1.2. Popen Objects, after The following attributes are also 
available, insert  (do not try to change them) before ':'.

Actually, it seems to me that the attributes should actually be read-only (in 
3.2) if possible (via custom Popen.__setattr__), in which case the only doc 
change needed (for 3.2) would be insertion of 'read-only' before 'attributes'.

Georg, if you know the id of the subprocess maintainer (if there is one now), 
could you add him to the nosy list for an opinion or comment?

--
nosy: +tjreedy
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3687
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3687] Popen() object stdout attribute reassignment behaviour

2010-06-16 Thread Legoll Vincent

Legoll Vincent vincent.leg...@gmail.com added the comment:

On Thu, Jun 17, 2010 at 2:34 AM, Terry J. Reedy rep...@bugs.python.org wrote:
 While it could be argued that it is 'obvious'

What is obvious for someone maybe is not for others, if I tried to modify it,
that was on the (false) assumption that it will do what I wanted (whatever
that is)...

Adding more precision to documentation or making the interface fool proof
will make life of dumb devs like me easier by not having to guess or try.

Thanks for taking care of this.

--
nosy: +vlegoll

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3687
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3687] Popen() object stdout attribute reassignment behaviour

2008-08-26 Thread Vincent Legoll

New submission from Vincent Legoll [EMAIL PROTECTED]:

The subprocess.Popen() object documentation should indicate
that the stdout attribute should not be modified after
object construction. Because that won't work.

Or the attribute may be rendered read-only

 from subprocess import Popen, PIPE
 import sys, os
 p1 = Popen([echo, 1], stdout = PIPE)
 p2 = Popen([cat], stdin = p1.stdout, stderr = PIPE, stdout = PIPE)
 p2.stdout = sys.stdout
 print p2.communicate()

This blocks forever

--
assignee: georg.brandl
components: Documentation
messages: 71983
nosy: georg.brandl, vincent.legoll
severity: normal
status: open
title: Popen() object stdout attribute reassignment behaviour
type: behavior
versions: Python 2.5

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3687
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com