python: initialize PythonExtension only once
Make sure to initialize the methods, attributes, etc of PythonExtension only once, instead of at every contructor execution. While this is not a problem with the current version of PyCXX, it will be a problem with newer versions.
parent
05b9267d
Please register or sign in to comment