Serhiy Storchaka added the comment:

See also get_standard_encoding() in Python/codecs.c. I suppose it is faster.

UTF-32 is rarely used as external encoding, but it is still used as internal 
encoding in some programming languages and libraries (e.g. wchar_t* in C and 
std::wstring in C++ on Linux). The codec itself is very fast. I would add fast 
path all utf encodings (except utf-7).

----------

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

Reply via email to