Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:

Why do you expect UTF-8 inside the redirect_stdout block?

io.StringIO doesn't have an encoding - it stores strings, not bytes.

If z3-solver cannot deal with StringIO, then surely that's a bug in z3-solver?

----------
nosy: +steven.daprano

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44774>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to