STINNER Victor added the comment:

"The email package needs has_escaped_bytes.  Currently it tries to encode to 
ascii to find out if there are any, which we proved by microbenchmark is the 
fastest way to do it as things stand."

In which function you need to check this? What do you do if there are surrogate 
characters?

----------
nosy: +haypo

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

Reply via email to