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

Stephen J. Turnbull stephen at xemacs.org
Thu Mar 2 18:40:00 CET 2006

>>>>> "martin" == martin  <martin at v.loewis.de> writes:

    martin> There are a few advantages [to C++], though, mainly:

    martin> - increased type-safety, in particular for API that isn't
    martin> type-checked at all at the moment (e.g. PyArg_ParseTuple)

That's merely an advantage to having a C++ *compiler*.  No need to
actually use the C++ *language*.  :-)

XEmacs has had a policy of compiling without warnings under *both* C
and C++ for about 5 years now, and it catches a lot of stupidity
before it leaves the developer's sandbox.

The feature programmers are occasionally annoyed that a pet C idiom
gets disallowed, but that's the only downside we've experienced.

School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.

More information about the Python-Dev mailing list