Skip to content

Commit

Permalink
call it 3.0 for the change in pipe type
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Aug 18, 2021
1 parent 48d1236 commit 7c874f6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion wurlitzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
from __future__ import print_function

__version__ = '2.1.2.dev'
__version__ = '3.0.0.dev'

__all__ = [
'pipes',
Expand Down Expand Up @@ -274,6 +274,14 @@ def pipes(stdout=PIPE, stderr=PIPE, encoding=_default_encoding):
The return value for the context manager is (stdout, stderr).
.. versionchanged:: 3.0
when using `PIPE` (default), the type of captured output
is `io.StringIO/BytesIO` instead of an OS pipe.
This eliminates max buffer size issues (and hang when output exceeds 65536 bytes),
but also means the buffer cannot be read with `.read()` methods
until after the context exits.
Examples
--------
Expand Down

0 comments on commit 7c874f6

Please sign in to comment.