[issue17286] Make subprocess handling text output with universal_newlines more obious

2018-06-11 Thread Cheryl Sabella


Change by Cheryl Sabella :


--
resolution:  -> duplicate
stage: needs patch -> resolved
status: open -> closed
superseder:  -> subprocess.run should alias universal_newlines to text

___
Python tracker 

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



[issue17286] Make subprocess handling text output with universal_newlines more obious

2018-02-26 Thread Mark Lawrence

Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue17286] Make subprocess handling text output with universal_newlines more obious

2018-02-25 Thread bbayles

bbayles  added the comment:

This is fixed in 3.7 with the `text` parameter. See GitHub PR 4049: 
https://github.com/python/cpython/pull/4049

--
nosy: +bbayles

___
Python tracker 

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



[issue17286] Make subprocess handling text output with universal_newlines more obious

2014-08-29 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage:  - needs patch
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3

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



[issue17286] Make subprocess handling text output with universal_newlines more obious

2014-07-17 Thread Mark Lawrence

Mark Lawrence added the comment:

@Baptiste can you provide a patch for this?

--
nosy: +BreamoreBoy

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



[issue17286] Make subprocess handling text output with universal_newlines more obious

2013-02-24 Thread Baptiste Lepilleur

New submission from Baptiste Lepilleur:

It tooks me a while to figure out that using universal_newlines was the 
solution to tell subprocess that I wanted text string output instead of byte 
string.

A search on stackoverflow shows that this issue is common and the solution 
nearly unknown (answer is usually to decode the byte string manually)...

Because dealing with text output is IMHO the most common use case, the 
subprocess documentation should make it easier to find the recipe.

I would suggest changing the documentation so that the universal_newlines is 
made obvious as it is very important:
1) the first /bin/vikings example be modified to show the use of this flag (at 
the top of the documentation, most people copy/past that):
   p = subprocess.Popen(args, universal_newlines=True) # Success!
  and at a small comment below the example to explain that flag
2) change other example similarly when that make sense, IMHO:
   - ifconfig example
   - one of the subprocess.check_output example
   - subprocess.check_output() example, consider separating the byte string / 
text string example for increased visibility
3) consider adding a section with an obvious title Dealing with binary and 
text input/output, providing examples and pointer to the correct documentation 
(I would place it after the convenience functions section for visibility). I 
think this would help attracting eye on this large piece of documentation.

--
assignee: docs@python
components: Documentation
messages: 182872
nosy: Baptiste.Lepilleur, docs@python
priority: normal
severity: normal
status: open
title: Make subprocess handling text output with universal_newlines more obious
type: enhancement
versions: Python 3.1, Python 3.2, Python 3.3

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