diff --git a/Examples/test-suite/python/default_args_runme.py b/Examples/test-suite/python/default_args_runme.py new file mode 100644 index 000000000..6844e03bb --- /dev/null +++ b/Examples/test-suite/python/default_args_runme.py @@ -0,0 +1,17 @@ +import default_args + + +if default_args.Statics.staticmethod() != 60: + raise RuntimeError + +if default_args.cfunc1(1) != 2: + raise RuntimeError + +if default_args.cfunc2(1) != 3: + raise RuntimeError + +if default_args.cfunc3(1) != 4: + raise RuntimeError + + + diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 60196fa9f..e5b770cbe 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -2167,6 +2167,11 @@ public: virtual int staticmemberfunctionHandler(Node *n) { String *symname = Getattr(n,"sym:name"); Language::staticmemberfunctionHandler(n); + + if (Getattr(n,"sym:nextSibling")) { + return SWIG_OK; + } + if (shadow) { if ( !classic && !Getattr(n,"feature:python:callback") && have_addtofunc(n)) { int kw = (check_kwargs(n) && !Getattr(n,"sym:overloaded")) ? 1 : 0;