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

martin at v.loewis.de martin at v.loewis.de
Wed Mar 1 17:10:18 CET 2006


Zitat von Ulrich Berning <ulrich.berning at denviso.de>:

> I can't see many advantages in moving to C++, but a lot of disadvantages:

There are a few advantages, though, mainly:
- increased type-safety, in particular for API that isn't type-checked
  at all at the moment (e.g. PyArg_ParseTuple)
- more reliable reference counting, due to destructors of local
  variables
- "native" exception handling, making exceptions both less error-prone
  and possible more efficient.

Regards,
Martin




More information about the Python-Dev mailing list