[issue17860] subprocess docs lack info how to use output result

2013-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4747e1ce2b1 by Ronald Oussoren in branch '3.3': Cleanup of documentation change from #17860 http://hg.python.org/cpython/rev/f4747e1ce2b1 New changeset 83810f67d16b by Ronald Oussoren in branch 'default': (3.3-default) Cleanup of documentation

[issue17860] subprocess docs lack info how to use output result

2013-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2c2ffa1a41c by Ronald Oussoren in branch '3.3': Issue #17860: explicitly mention that std* streams are opened in binary mode by default. http://hg.python.org/cpython/rev/a2c2ffa1a41c New changeset ae8b054155c1 by Ronald Oussoren in branch

[issue17860] subprocess docs lack info how to use output result

2013-07-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: The documentation for 3.3 and default now explicitly mentions that the std* streams are opened as binary streams when universal_newlines is false. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed

[issue17860] subprocess docs lack info how to use output result

2013-06-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't agree that adding a table/picture is the only thing that can be done, or even that it is a good idea. IMHO the subprocess documentation is clear enough about the distinction between bytes and string, especially in the section about convenience

[issue17860] subprocess docs lack info how to use output result

2013-06-13 Thread Ezio Melotti
Ezio Melotti added the comment: Also in the Python 3 docs we don't compare the current behavior with Python 2. Ronald patch LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860 ___

[issue17860] subprocess docs lack info how to use output result

2013-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860 ___ ___ Python-bugs-list

[issue17860] subprocess docs lack info how to use output result

2013-06-13 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- assignee: docs@python - ronaldoussoren stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860 ___

[issue17860] subprocess docs lack info how to use output result

2013-06-13 Thread anatoly techtonik
anatoly techtonik added the comment: On Thu, Jun 13, 2013 at 9:20 AM, Ezio Melotti rep...@bugs.python.orgwrote: Also in the Python 3 docs we don't compare the current behavior with Python 2. That's most unfortunate. Major PITA comes from attempts to port existing code. --

[issue17860] subprocess docs lack info how to use output result

2013-06-13 Thread anatoly techtonik
anatoly techtonik added the comment: _failed_ attempts to port existing code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860 ___ ___

[issue17860] subprocess docs lack info how to use output result

2013-06-13 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Surely there are already good places to help with 2-3 transition? The Library Reference is not such a place. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue17860] subprocess docs lack info how to use output result

2013-06-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch explicitly mentions that stdin/stdout/stderr are opened as binary streams when universal_newlines is False. I'm not convinced that adding this text will solve the confusion, subprocess has fairly complex documentation due to the rich API

[issue17860] subprocess docs lack info how to use output result

2013-06-12 Thread anatoly techtonik
anatoly techtonik added the comment: The only thing that can save the docs is pictures. Or tables. +-+---+ | | universal_newlines = True | +--+-+---+ |Py.2 | str | str

[issue17860] subprocess docs lack info how to use output result

2013-05-03 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860 ___ ___

[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread anatoly techtonik
New submission from anatoly techtonik: http://docs.python.org/3/library/subprocess.html A common confusion is that result from subprocess calls in Python 3 is bytes, not string, and needs to be converted. The problem is complicated because you need to know the encoding of input/output

[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, haypo stage: - needs patch type: - enhancement versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860

[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Actually stdin/stdout/stderr are string streams if universal_newline is True -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860 ___

[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread anatoly techtonik
anatoly techtonik added the comment: Actually stdin/stdout/stderr are string streams if universal_newline is True I believe that makes the issue even worse. =) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860

[issue17860] subprocess docs lack info how to use output result

2013-04-28 Thread R. David Murray
R. David Murray added the comment: Anatoly, do you have a specific suggestion for improved wording? This *is* documented in the subprocess documentation, in several appropriate places, including the fact that the appropriate encoding to use may need to be determined at the application level.