[issue17003] Unification of read() and readline() argument names

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue17003] Unification of read() and readline() argument names

2015-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: readlines() parameter name is not unified still (it can be "hint", "size", "sizehint"). There is no obvious winner. -- ___ Python tracker ___

[issue17003] Unification of read() and readline() argument names

2015-01-09 Thread Martin Panter
Martin Panter added the comment: Is there anything left for this bug or could it be closed? I can confirm my v3.4.2 docs say “size” instead of “n” :) -- nosy: +vadmium ___ Python tracker __

[issue17003] Unification of read() and readline() argument names

2013-09-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 46c1c2b34e2b by Serhiy Storchaka in branch 'default': Issue #17003: Unified the size argument names in the io module with common http://hg.python.org/cpython/rev/46c1c2b34e2b -- nosy: +python-dev ___ Pyth

[issue17003] Unification of read() and readline() argument names

2013-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there any objections to the patch? -- assignee: docs@python -> serhiy.storchaka versions: +Python 3.4 ___ Python tracker ___ _

[issue17003] Unification of read() and readline() argument names

2013-01-26 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17003] Unification of read() and readline() argument names

2013-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > "n" is the best choice IMO. Unfortunately most stdlib modules vote for "size". -- ___ Python tracker ___ __

[issue17003] Unification of read() and readline() argument names

2013-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which changes name of optional parameter of read(), read1(), peek(), and readline() methods to most common name "size" in the documentation and _pyio module. truncate() in _pyio fixed to conform with documentation. This changes are safe. The

[issue17003] Unification of read() and readline() argument names

2013-01-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: "n" is the best choice IMO. "size" is ok too, although it may be confused with the byte-size of the result. -- ___ Python tracker ___ _

[issue17003] Unification of read() and readline() argument names

2013-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as size is most common parameter name for both read() and readline(). First, we can change the io documentation and _pyio signatures (it shouldn't break anything because _io doesn't support keyword arguments). -- __

[issue17003] Unification of read() and readline() argument names

2013-01-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: read() and readline() optional parameter which limit the amount of read data has different names in different classes. All this classes mimic (less or more) io classes. Keyword parameter name is a part of method specification. Therefore it will be good mad