[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2020-10-25 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-11-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks. Here’s another take: I think the wording is better, but it’s longer. I removed the reference to sys.stdin, which you don’t print to: I haven’t checked if the doc for the input function should talk about the encoding too. --

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-11-29 Thread Zachary Richey
Zachary Richey mach1...@gmail.com added the comment: I've reworded the patch and fixed the issues in the patch pointed out by eric.araujo. -- Added file: http://bugs.python.org/file23815/functions_print_doc_2.patch ___ Python tracker

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-11-28 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. It was reviewed on our code review tool; if you did not get an email (there are glitches), follow the link on the right of your patch in the list of files. -- nosy: +eric.araujo

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-08-24 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: A common problem encountered when using python3 is writing non-ascii to stdout. This will work fine if stdout is a terminal and the terminal encoding handles the characters, but will fail if stdout is later redirected to a pipe. The

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-08-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Victor says it defaults to LOCALE in 3.3. The documentation should still be expanded to mention this even in 3.3, though. -- ___ Python tracker rep...@bugs.python.org

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-08-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, this was actually fixed in 3.2, so it is only 2.7 where there is the different (and long standing) problem of output of unicode to a pipe. So, the doc issue boils down to mentioning how the encoding for stdout/stderr is derived

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-08-24 Thread Zachary Richey
Zachary Richey mach1...@gmail.com added the comment: I'm not sure if this is good documentation, but it explains how the encoding is gotten for stdout and stderr. -- keywords: +patch nosy: +mach1723 Added file: http://bugs.python.org/file23042/functions_print_doc.patch