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
.cvsignore -rw-r--r-- 276 bytes
BUILDno.txt -rw-r--r-- 3.5 KB
Uninstal.wse -rw-r--r-- 9.5 KB
_bsddb.vcproj -rw-r--r-- 7.5 KB
_socket.vcproj -rw-r--r-- 7.1 KB
_ssl.mak -rw-r--r-- 655 bytes
_ssl.vcproj -rw-r--r-- 1.5 KB
_testcapi.vcproj -rw-r--r-- 7.1 KB
_tkinter.vcproj -rw-r--r-- 8.4 KB
build_ssl.py -rw-r--r-- 5.7 KB
bz2.vcproj -rw-r--r-- 7.4 KB
field3.py -rw-r--r-- 966 bytes
installer.bmp -rw-r--r-- 49.1 KB
make_versioninfo.vcproj -rw-r--r-- 4.9 KB
pcbuild.sln -rw-r--r-- 12.3 KB
pyexpat.vcproj -rw-r--r-- 10.6 KB
python.iss -rw-r--r-- 18.4 KB
python.vcproj -rw-r--r-- 7.4 KB
python20.wse -rw-r--r-- 78.0 KB
pythoncore.vcproj -rw-r--r-- 99.8 KB
pythonw.vcproj -rw-r--r-- 7.4 KB
readme.txt -rw-r--r-- 12.6 KB
rmpyc.py -rw-r--r-- 597 bytes
rt.bat -rwxr-xr-x 1.5 KB
select.vcproj -rw-r--r-- 7.3 KB
unicodedata.vcproj -rw-r--r-- 7.2 KB
w9xpopen.vcproj -rw-r--r-- 4.1 KB
winsound.vcproj -rw-r--r-- 7.2 KB
zlib.vcproj -rw-r--r-- 6.9 KB

readme.txt

back to top