From 814abcb67c5a8e14d2e103d3d5accd42e4907626 Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Mon, 19 Sep 2016 12:37:03 -0400 Subject: [PATCH] print_() insteads of _print() (easier to type) --- wrap/Method.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wrap/Method.cpp b/wrap/Method.cpp index eadf452e3..12154eda1 100644 --- a/wrap/Method.cpp +++ b/wrap/Method.cpp @@ -36,7 +36,7 @@ static std::string pyRename(const std::string& name) { pythonKeywords.end()) return name; else - return "_" + name; + return name + "_"; } /* ************************************************************************* */ @@ -93,7 +93,6 @@ void Method::emit_cython_pxd(FileWriter& file, const Class& cls) const { file.oss << "\t\t"; returnVals_[i].emit_cython_pxd(file, cls.cythonClass()); file.oss << pyRename(name_) + " \"" + name_ + "\"" << "("; - // ((name_ == "print") ? "_print \"print\"" : name_) << "("; argumentList(i).emit_cython_pxd(file, cls.cythonClass()); file.oss << ")"; if (is_const_) file.oss << " const";