Staging
v0.8.1
https://github.com/python/cpython
Revision e9ddfbb41207328d5c89061067f3431e00711fda authored by Hye-Shik Chang on 04 August 2004, 07:38:35 UTC, committed by Hye-Shik Chang on 04 August 2004, 07:38:35 UTC
unicodedata.east_asian_width().  You can still implement your own
simple width() function using it like this:
    def width(u):
        w = 0
        for c in unicodedata.normalize('NFC', u):
            cwidth = unicodedata.east_asian_width(c)
            if cwidth in ('W', 'F'): w += 2
            else: w += 1
        return w
1 parent b5047fd
History
Tip revision: e9ddfbb41207328d5c89061067f3431e00711fda authored by Hye-Shik Chang on 04 August 2004, 07:38:35 UTC
SF #989185: Drop unicode.iswide() and unicode.width() and add
Tip revision: e9ddfbb
File Mode Size
VC6
bdist_wininst
example_nt
os2emx
os2vacpp
.cvsignore -rw-r--r-- 30 bytes
WinMain.c -rw-r--r-- 447 bytes
_winreg.c -rw-r--r-- 42.7 KB
config.c -rw-r--r-- 4.1 KB
dl_nt.c -rw-r--r-- 908 bytes
dllbase_nt.txt -rw-r--r-- 3.5 KB
frozen_dllmain.c -rw-r--r-- 3.6 KB
getpathp.c -rw-r--r-- 17.5 KB
import_nt.c -rw-r--r-- 2.4 KB
make_versioninfo.c -rw-r--r-- 1.0 KB
msvcrtmodule.c -rwxr-xr-x 4.9 KB
py.ico -rw-r--r-- 766 bytes
pyc.ico -rw-r--r-- 766 bytes
pycon.ico -rw-r--r-- 766 bytes
pyconfig.h -rw-r--r-- 15.5 KB
python.mk -rw-r--r-- 234 bytes
python_exe.rc -rw-r--r-- 49 bytes
python_nt.rc -rw-r--r-- 1.8 KB
readme.txt -rw-r--r-- 4.2 KB
testpy.py -rw-r--r-- 890 bytes
w9xpopen.c -rw-r--r-- 3.6 KB
winsound.c -rw-r--r-- 7.1 KB

readme.txt

back to top