[New-bugs-announce] [issue13100] sre_compile._optimize_unicode() needs a cleanup

STINNER Victor report at bugs.python.org
Tue Oct 4 19:11:58 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

The following comment is wrong, 

    except IndexError:
        # non-BMP characters; XXX now they should work
        return charset

sys.maxunicode != 65535 is now always true in Python 3.3

        if sys.maxunicode != 65535:
            # XXX: negation does not work with big charsets
            # XXX2: now they should work, but removing this will make the
            # charmap 17 times bigger
            return charset

See the related commit: f39b26ca7f3d (from issue #13054).

----------
components: Library (Lib), Regular Expressions, Unicode
messages: 144905
nosy: ezio.melotti, haypo, pitrou
priority: normal
severity: normal
status: open
title: sre_compile._optimize_unicode() needs a cleanup
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13100>
_______________________________________


More information about the New-bugs-announce mailing list