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

Antoine Pitrou solipsis at pitrou.net
Wed Mar 20 01:26:33 CET 2013


On Wed, 20 Mar 2013 01:22:58 +0100 (CET)
michael.foord <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/684b75600fa9
> changeset:   82811:684b75600fa9
> user:        Michael Foord <michael at voidspace.org.uk>
> date:        Tue Mar 19 17:22:51 2013 -0700
> summary:
>   Closes issue 17467. Add readline and readlines support to unittest.mock.mock_open

Wasn't it possible to re-use an existing implementation (such as
TextIOBase or StringIO) rather than re-write your own?

(it's not even obvious your implementation is correct, BTW. How about
universal newlines?)

Regards

Antoine.




More information about the Python-Dev mailing list