Skip to content

beeprint interacts badly with wrapped sys.stdout #21

Description

@jhermann

Concrete example is bpython, this is what happens:

$ bpython
bpython version 0.16 on top of Python 2.7.11+
>>> import sys
>>> sys.stdout
<bpython.curtsiesfrontend.coderunner.FakeOutput object at 0x7f6a156c0b50>
>>> import beeprint
>>> sys.stdout<open file '<stdout>', mode 'w' at 0x7f6a1a2a6150>

I don't know why sys.stdout is changed at all by a simple import (it shouldn't), but if you do, chain the existing value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions