[Python-Dev] cpython: Closes issue 17467. Add readline and readlines support to

Michael Foord fuzzyman at voidspace.org.uk
Wed Mar 20 09:14:36 CET 2013

On 20 Mar 2013, at 01:03, Antoine Pitrou <solipsis at pitrou.net> wrote:

> On Wed, 20 Mar 2013 00:50:27 -0700
> Michael Foord <fuzzyman at voidspace.org.uk> wrote:
>> If you want to add support for additional functionality feel free to propose a patch.
> This isn't about additional functionality, this is about
> correctness. You don't want to write multiple, slightly different,
> implementations of readline() and friends (which is what Python 2 did).

This change allows you to set a series of return values for readlines when mocking open.

We are not reading data from anywhere the user is supplying it pre-canned.

Do you have a specific problem with it? 


> Regards
> Antoine.
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk

More information about the Python-Dev mailing list