This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Marc.Abramowitz, alex, barry, belopolsky, brett.cannon, ncoghlan, pitrou, rhettinger, vstinner
Date 2013-07-21.23:05:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADiSq7e46zOZnGZaUkzFn3tDxztGsQdDDqNQ0bhTLHtFQKA-Ag@mail.gmail.com>
In-reply-to <1374427051.22.0.981734276392.issue15805@psf.upfronthosting.co.za>
Content
A good start, but:

1. io is too low level to depend on unittest (or even contextlib), as
anything it imports will be imported automatically at interpreter startup.
The context manager will need to be written out directly as a class with
the appropriate methods.

2. The name based API should accept the unqualified name and throw a value
error if an unexpected name is passed in.

3. The stdin replacement should have a separate optional keyword-only
"data" argument to request wrapping with StringIO, rather than duck typing
the replacement value.
History
Date User Action Args
2013-07-21 23:05:59ncoghlansetrecipients: + ncoghlan, barry, brett.cannon, rhettinger, belopolsky, pitrou, vstinner, alex, Marc.Abramowitz
2013-07-21 23:05:59ncoghlanlinkissue15805 messages
2013-07-21 23:05:59ncoghlancreate