Change by Peter Law :
--
keywords: +patch
pull_requests: +20352
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21199
___
Python tracker
<https://bugs.python.org/issu
New submission from Peter Law :
In `contextlib`, `_RedirectStream` (the class behind `redirect_stdout` and
`redirect_stderr`) returns the current stream target as its context variable,
which allows code like this:
``` python
with redirect_stdout(io.StringIO()) as buffer:
do_stuff()
use
New submission from Peter Law :
`sys.stdin` (on Windows, tested Pythons 3.6-3.8) appears to have different
seeking behaviour depending on the source of the incoming data. This seems
arguably reasonable given that `stdin` isn't always seekable, however even in
the failing
Peter Law added the comment:
Awesome, thanks for fixing this.
--
nosy: +PeterJCLaw
___
Python tracker
<http://bugs.python.org/issue23600>
___
___
Python-bug