[Python-Dev] C++ for CPython 3? (Re: str.count is slow) (original) (raw)
martin at v.loewis.de martin at v.loewis.de
Wed Mar 1 17:10:18 CET 2006
- Previous message: [Python-Dev] C++ for CPython 3? (Re: str.count is slow)
- Next message: [Python-Dev] C++ for CPython 3? (Re: str.count is slow)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] C++ for CPython 3? (Re: str.count is slow)
- Next message: [Python-Dev] C++ for CPython 3? (Re: str.count is slow)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]