[issue13100] sre_compile._optimize_unicode() needs a cleanup

2013-10-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are a lot of dead or suboptimal code in the re module. For example _sre.CODESIZE now can't be 2. We could cleanup the code as side effect of optimization. -- nosy: +serhiy.storchaka ___ Python tracker

[issue13100] sre_compile._optimize_unicode() needs a cleanup

2013-01-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +mrabarnett stage: -> committed/rejected type: -> behavior ___ Python tracker ___ ___ Python-bugs

[issue13100] sre_compile._optimize_unicode() needs a cleanup

2013-01-02 Thread STINNER Victor
STINNER Victor added the comment: I don't know what to do with this issue. The code looks to work anyway, so I guess that it's safer to not touch it :-) -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue13100] sre_compile._optimize_unicode() needs a cleanup

2011-10-04 Thread STINNER Victor
New submission from STINNER Victor : 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 do