On Wed, 20 Mar 2013 01:22:58 +0100 (CET)
michael.foord <python-check...@python.org> wrote:
> http://hg.python.org/cpython/rev/684b75600fa9
> changeset:   82811:684b75600fa9
> user:        Michael Foord <mich...@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.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to