+ move handwritten Python classes to PyCXX

This commit is contained in:
wmayer
2016-01-27 18:07:48 +01:00
parent dec030b34e
commit 173f19eff4
6 changed files with 131 additions and 187 deletions

View File

@@ -242,7 +242,7 @@ void SelectionFilterPy::init_type()
behaviors().supportRepr();
behaviors().supportGetattr();
behaviors().supportSetattr();
behaviors().type_object()->tp_new = &PyMake;
behaviors().set_tp_new(PyMake);
add_varargs_method("match",&SelectionFilterPy::match,"match()");
add_varargs_method("result",&SelectionFilterPy::result,"result()");
add_varargs_method("test",&SelectionFilterPy::test,"test()");