Two of Python's biggest strengths are its easy extensibility and its object-orientedness. When it comes to writing Python extensions in C++, however, I have to use Python's plain C extension API to wrap my C++ objects. While it's certainly functional, most of my extension code seems to be boilerplate and housework (e.g., validating arguments and keeping track of reference counts) that could be handled more transparently if Python provided a C++ extension API. I realize that there are third-party Python extension libraries such as Boost.Python for C++ programmers, but at this point I still prefer to use the C API despite its verboseness as it gives maximum control and allows me to make my extensions more "Pythonic" by, for example, allowing me to map C++ get/set method pairs to Python object attributes.
All of which is a very roundabout way of asking if you are considering rewriting CPython in C++ or at the very least providing an "official" C++ API to Python's underlying object model?
I just thought that people need to know that the story linked to redirects to a very nasty page that hijacked my browser (Chrome on Windows 7).
Easy solution: We should all become porpoises.
You're probably thinking of this article.
Two of Python's biggest strengths are its easy extensibility and its object-orientedness. When it comes to writing Python extensions in C++, however, I have to use Python's plain C extension API to wrap my C++ objects. While it's certainly functional, most of my extension code seems to be boilerplate and housework (e.g., validating arguments and keeping track of reference counts) that could be handled more transparently if Python provided a C++ extension API. I realize that there are third-party Python extension libraries such as Boost.Python for C++ programmers, but at this point I still prefer to use the C API despite its verboseness as it gives maximum control and allows me to make my extensions more "Pythonic" by, for example, allowing me to map C++ get/set method pairs to Python object attributes.
All of which is a very roundabout way of asking if you are considering rewriting CPython in C++ or at the very least providing an "official" C++ API to Python's underlying object model?
P.S. Thanks for a great language!