diff --git a/wrap/GlobalFunction.h b/wrap/GlobalFunction.h index 9742733f7..099cefa70 100644 --- a/wrap/GlobalFunction.h +++ b/wrap/GlobalFunction.h @@ -54,7 +54,16 @@ struct GlobalFunction: public FullyOverloadedFunction { // function name in Cython pxd std::string pxdName() const { return "pxd_" + pyRename(name_); } // function name in Python pyx - std::string pyxName() const { return pyRename(name_); } + std::string pyxName() const { + std::string result = ""; + for(size_t i=0; i= 1) { + result += (overloads[0].namespaces_[i] + "_"); + } + } + result += pyRename(name_); + return result; + } // emit cython wrapper void emit_cython_pxd(FileWriter& pxdFile) const;