[issue35646] Subprocess.Popen('python -v', stdout=PIPE, stderr=PIPE, Shell=True) gives output in stderr

2019-01-02 Thread Deepak Joshi


New submission from Deepak Joshi :

Subprocess.Popen('python -v',stdout=PIPE,stderr=PIPE,Shell=True)

Prduces output in stderr instead of stdout.

For others: pip --version or git --version output is in stdout and is expected.

--
components: Windows, ctypes
messages: 332915
nosy: Deepak Joshi, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Subprocess.Popen('python -v',stdout=PIPE,stderr=PIPE,Shell=True) gives 
output in stderr
type: behavior
versions: Python 2.7

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



[issue35646] python -v writes to stderr

2019-01-03 Thread Deepak Joshi


Deepak Joshi  added the comment:

Hello,

-V and --version both write to stderr not stdout.

On Thu, 3 Jan 2019, 1:29 pm Eric V. Smith 
> Eric V. Smith  added the comment:
>
> -v writes to stderr, so this is the expected behavior. Although maybe this
> could be better documented.
>
> See issue 18338, where this was briefly discussed and a change was
> rejected.
>
> Maybe you're looking for -V (uppercase) or --version, which do write to
> stdout, at least in 3.x. I'm not sure where they write in 2.7, but it's
> much too late to change 2.7's behavior.
>
> I'm going to close this. If you find some of our documentation that says
> -v writes to stdout, then we can reopen this.
>
> This is not a Windows specific error, so I'm modifying the nosy list.
>
> --
> components: +Interpreter Core -Windows, ctypes
> nosy: +eric.smith -paul.moore, steve.dower, tim.golden, zach.ware
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
> title: Subprocess.Popen('python -v',stdout=PIPE,stderr=PIPE,Shell=True)
> gives output in stderr -> python -v writes to stderr
>
> ___
> Python tracker 
> <https://bugs.python.org/issue35646>
> ___
>

--

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



[issue35646] python -v writes to stderr

2019-01-03 Thread Deepak Joshi


Deepak Joshi  added the comment:

Thank you for the reply Eric.
Thought the behaviour is pretty wierd and opened the issue.

On Thu, 3 Jan 2019, 2:28 pm Eric V. Smith 
> Eric V. Smith  added the comment:
>
> That's just the way it is with 2.7.
>
> --
>
> ___
> Python tracker 
> <https://bugs.python.org/issue35646>
> ___
>

--

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