Movatterモバイル変換
[0]ホーム
[Python-Dev] Fix Unicode-disabled build of Python 2.7
Victor Stinnervictor.stinner at gmail.com
Tue Jun 24 10:55:21 CEST 2014
Hi,I don't know anyone building Python without Unicode. I would prefer tomodify configure to raise an error, and drop #ifdef in the code. (Stopsupporting building Python 2 without Unicode.)Building Python 2 without Unicode support is not an innocent change.Python is moving strongly to Unicode: Python 3 uses Unicode bydefault. So to me it sounds really weird to work on building Python 2without Unicode support. It means that you may have "Python 2" and"Python 2 without Unicode" which are not exactly the same language.IMO u"unicode" is part of the Python 2 language.--disable-unicode is an old option added while Python 1.5 was veryslowly moving to Unicode.I have the same opinion on --without-thread option (we should stopsupporting it, this option is useless). I worked in the embeddedworld, Python used for the UI of a TV set top box. Even if thehardware was slow and old, Python was compiled with threads andUnicode. Unicode was mandatory to handle correctly letters withdiacritics, threads were used to handle network and D-Bus forexamples.Victor2014-06-24 10:22 GMT+02:00 Serhiy Storchaka <storchaka at gmail.com>:> I submitted a number of patches which fixes currently broken> Unicode-disabled build of Python 2.7 (built with --disable-unicode configure> option). I suppose this was broken in 2.7 when C implementation of the io> module was introduced.>>http://bugs.python.org/issue21833 -- main patch which fixes the io module> and adds helpers for testing.>>http://bugs.python.org/issue21834 -- a lot of minor fixes for tests.>> Following issues fix different modules and related tests:>>http://bugs.python.org/issue21854 -- cookielib>http://bugs.python.org/issue21838 -- ctypes>http://bugs.python.org/issue21855 -- decimal>http://bugs.python.org/issue21839 -- distutils>http://bugs.python.org/issue21843 -- doctest>http://bugs.python.org/issue21851 -- gettext>http://bugs.python.org/issue21844 -- HTMLParser>http://bugs.python.org/issue21850 -- httplib and SimpleHTTPServer>http://bugs.python.org/issue21842 -- IDLE>http://bugs.python.org/issue21853 -- inspect>http://bugs.python.org/issue21848 -- logging>http://bugs.python.org/issue21849 -- multiprocessing>http://bugs.python.org/issue21852 -- optparse>http://bugs.python.org/issue21840 -- os.path>http://bugs.python.org/issue21845 -- plistlib>http://bugs.python.org/issue21836 -- sqlite3>http://bugs.python.org/issue21837 -- tarfile>http://bugs.python.org/issue21835 -- Tkinter>http://bugs.python.org/issue21847 -- xmlrpc>http://bugs.python.org/issue21841 -- xml.sax>http://bugs.python.org/issue21846 -- zipfile>> Most fixes are trivial and are only several lines of a code.>> _______________________________________________> Python-Dev mailing list>Python-Dev at python.org>https://mail.python.org/mailman/listinfo/python-dev> Unsubscribe:>https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com
More information about the Python-Devmailing list
[8]ページ先頭