[Python-Dev] Difference in RE between 3.2 and 3.3 (or Aaron Swartz memorial)

Georg Brandl g.brandl at gmx.net
Thu Mar 7 21:20:57 CET 2013


Am 07.03.2013 11:08, schrieb Matej Cepl:

>> Anyway, you spotted a missed optimization: it's now "fixed" in
>> Python 3.3 and 3.4 by the following commits.
> 
> Well, whatever is the problem, it is not fixed in python 3.3.0
> (as you can see in
> https://travis-ci.org/mcepl/html2text/builds/4969045) as I can
> see on my computer. Actually, good news is that it seems to be
> fixed in the master branch of cpython (or the tip, as they say in
> the Mercurial world).

It's not a "fix", it's an optimization.  Please understand that
using the "is" operator on strings is entirely wrong.

Georg



More information about the Python-Dev mailing list