Martin v. Löwis <mar...@v.loewis.de> added the comment:

poq: I still remain opposed to exposing wcswidth, since it is just as incorrect 
as any of the other solutions that people have circulated. I could agree to it 
if it was called "wcswidth", making it clear that it does whatever the C 
library does, with whatever semantics the C library wants to give to it (and an 
availability that depends on whether the C library supports it or not). 

That would probably cover the nurses use cases, except that it is not only 
incorrect with respect to Unicode, but also incorrect with respect to what the 
terminal may be doing. I guess users would use it anyway.

For Python's internal use, I could accept using the sombok algorithm. I 
wouldn't expose it, since it again would trick people into believing that it 
was correct in some sense. Perhaps calling it sombok_width might allow for 
exposing it.

----------

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

Reply via email to