[Python-Dev] C++ for CPython 3? (Re: str.count is slow)

martin at v.loewis.de martin at v.loewis.de
Fri Mar 3 05:40:33 CET 2006

Zitat von Greg Ewing <greg.ewing at canterbury.ac.nz>:

> A rather heavyweight solution to a problem that does
> not seem to have been a problem in practice so far,
> only in theory.

The problem does exist in practice. Python is deliberately
build with -fno-strict-aliasing when GCC is used, and might
get compiled incorrectly on any other advanced C compiler.

The problem with that bug is that it is both very hard to
find when it exists, and very hard to dismiss as theoretical,
unless an extensive source code review is performed. Have
you done this review in the Python source code to know that
there is no potential for misinterpretation to make the claim
the problem is only theoretical?


More information about the Python-Dev mailing list