Changed wxSWIG to not generate Python code using apply, (since it will
be deprecated in the future) wxSWIG will use spam(*args, **kw) syntax instead. Also changed the generated __repr__ methods to be a bit more informative. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1071,7 +1071,7 @@ void PYTHON::create_function(char *name, char *iname, DataType *d, ParmList *l)
|
||||
func << tab4 << "\"\"\"" << add_docstring(doc_entry) << "\"\"\"\n";
|
||||
}
|
||||
|
||||
func << tab4 << "val = apply(" << module << "." << iname << ",_args,_kwargs)\n";
|
||||
func << tab4 << "val = " << module << "." << iname << "(*_args,**_kwargs)\n";
|
||||
|
||||
if (munge_return) {
|
||||
// If the output of this object has been remapped in any way, we're
|
||||
|
Reference in New Issue
Block a user