Antoine Pitrou <[email protected]> added the comment:

About wchar2char:
- PEP 383 says “With this PEP, non-decodable bytes >= 128 will be represented 
as lone surrogate codes U+DC80..U+DCFF. Bytes below 128 will produce 
exceptions”. Your patch accepts bytes below 128.
- I don't understand why you decrement `size` in the second pass. Perhaps you 
want to add `assert size == 0` at the end?

----------

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9425>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to