Stephan Houben writes:

 > I think this may be a minor concern ultimately, but it would be
 > nice if we had some API to at least reliable answer the question
 > "can I safely output non-ASCII myself?"

You can't; stdout might be a TTY, pipe, or socket in which case you
have no way to determine that.

_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to