If apply() is called without arguments I keep to get;
TypeError: CXX : Error creating object of type <NULL>
Following patch fixes this by being sure that no arguments means calling the Tuple(int) ctor with a capacity of 0 elements rather then the Tuple(PyObject*,owner) one with a NULL PyObject;
--- Objects.hxx (revision 804477)
+++ Objects.hxx (working copy)
@@ -2810,7 +2810,7 @@
Object apply(PyObject* pargs = 0) const
{
- return apply (Tuple(pargs));
+ return apply(pargs ? Tuple(pargs) : Tuple());
}
};
fixed in r327.