Antoine Pitrou added the comment:

> Why adding ASCII strings, whereas you can add Latin1 (UCS1, U+0000-U+00FF)
> strings?

Reasons:
- most strings in pyc files are pure ASCII (it's like 99% in the stdlib)
- unmarshalling ASCII strings is faster: you can pass 127 to PyUnicode_New 
without scanning for non-ASCII chars

The aim here is to optimize the common cases. There is no reason to further 
complicate the code for rare cases.

----------

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

Reply via email to