[issue22492] small addition to print() docs: no binary streams.

2014-10-01 Thread Georg Brandl

Georg Brandl added the comment:

Looks good.

 sys.stdout, when rebound to a binary mode file

Not sure that is supported in any way :)

--

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



[issue22492] small addition to print() docs: no binary streams.

2014-10-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9b519f72860a by Terry Jan Reedy in branch '3.4':
Issue 22492: Be explicit that print does not support binary mode files.
https://hg.python.org/cpython/rev/9b519f72860a

--
nosy: +python-dev

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



[issue22492] small addition to print() docs: no binary streams.

2014-10-01 Thread Terry J. Reedy

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


--
assignee:  - terry.reedy
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[issue22492] small addition to print() docs: no binary streams.

2014-09-30 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Agreed. Here is a patch I will commit if you approve.  I deleted 'convenience 
function' as distracting, labelled *file* a *text* stream in the first line, 
and added the rest of the comment after the current 'file' sentence, making 
separate 'file' and 'flush' paragraphs.

I unstarred 'file' in the addition to try to make it slightly clearer that the 
comment applies to the default sys.stdout, when rebound to a binary mode file, 
as well as to explicit *file=* arguments.

--
nosy: +terry.reedy
stage:  - commit review
type:  - enhancement
versions: +Python 3.4, Python 3.5
Added file: http://bugs.python.org/file36765/print-22492-34.diff

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



[issue22492] small addition to print() docs: no binary streams.

2014-09-25 Thread Georg Brandl

New submission from Georg Brandl:

This is implicit in the converts arguments to strings, but people might 
reasonably expect that print(x, file=y) is the same as y.write(x) for strings 
and bytes.  This paragraph makes it clear.

--
files: print_binary.diff
keywords: patch
messages: 227509
nosy: georg.brandl
priority: normal
severity: normal
status: open
title: small addition to print() docs: no binary streams.
Added file: http://bugs.python.org/file36719/print_binary.diff

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