Skip to content

Overriding sys.stdin causes errors in processes that actually uses attributes of sys.stdin #21

@MarounMaroun

Description

@MarounMaroun

In one of my projects I used sys.stdin.encoding, but since in this project we have:

sys.stdout = sys.stdin = handle

I got an exception during runtime.

Can we have a default values for that attribute (or even have the ability to pass its attribute in the constructor)?

(I can submit a PR if it's relevant)

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