It's a bug, thanks for reporting it! I've now pushed a fix. Sadly test
coverage for streams.py is not 100%.

On Tue, Jan 7, 2014 at 2:26 PM, Victor Stinner <[email protected]> wrote:
> Hi,
>
> Using Trollius, examples/source1.py fails sometimes with:
>
>    AttributeError: 'StreamWriter' object has no attribute '_writer'
>
> This error comes from StreamWriter.drain():
>
>     if self._reader._exception is not None:
>         raise self._writer._exception
>
> I don't see where StreamWriter._writer would be defined. Is it a typo?
> (self._writer => self._reader)
>
> I'm unable to reproduce the issue using Tulip. Is this code path
> tested by unit tests?
>
> Victor



-- 
--Guido van Rossum (python.org/~guido)

Reply via email to