Skip to content

Conversation

@thomasballinger
Copy link
Member

fixes #701

Make it clear with comments that self.stdout_hist is bytes in Python 2, unicode in Python 3. Blech, would be nice to fix that to be unicode everywhere.

To debug I made self.stdout_hist a type-checking property, maybe this is worth doing for real? Also maybe static typechecking would be nice? But this PR just fixes this bug.

@glyph
Copy link

glyph commented Aug 19, 2017

"bytes on python 2, unicode in python 3" is more easily referred to as "native str" :)

@sebastinas
Copy link
Contributor

Would be good to have test case so that we don't break that again in the future..

@sebastinas sebastinas merged commit 1991216 into bpython:master Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bpython-urwid on python 2 can't format tracebacks that contain non-ASCII characters

3 participants