Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAttributeError: 'FakeOutput' object has no attribute 'encoding' #622
Comments
|
Hm, I guess this should just be a property that returns whatever sys.stdout.encoding is, since that's how strings are actually being decoded. What are you using this for? (asking to try to understand if this is the right solution) |
This is a much better solution!
I don't remember that :D |
|
I found another AttributeError for 'FakeOutput', this time for 'fileno'. I was using PyQtGraph. Issue #628. |
|
Proposed solution in #629 |
|
I ran into the problem in bpython import as well. |
|
Here's my +1:
|
|
The
|
|
The
The Z3 example comes from here: https://theory.stanford.edu/~nikolaj/programmingz3.html#sec-logical-interface |
sys.stdout.encodinggives this error.Also
sys.stdin.encodinggives'UTF8', while python gives'UTF-8'for both cases.This commit makes bpython work (naturally stdin is still different than in standard python):