print_() insteads of _print() (easier to type)
parent
a294c2ab11
commit
814abcb67c
|
@ -36,7 +36,7 @@ static std::string pyRename(const std::string& name) {
|
||||||
pythonKeywords.end())
|
pythonKeywords.end())
|
||||||
return name;
|
return name;
|
||||||
else
|
else
|
||||||
return "_" + name;
|
return name + "_";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
@ -93,7 +93,6 @@ void Method::emit_cython_pxd(FileWriter& file, const Class& cls) const {
|
||||||
file.oss << "\t\t";
|
file.oss << "\t\t";
|
||||||
returnVals_[i].emit_cython_pxd(file, cls.cythonClass());
|
returnVals_[i].emit_cython_pxd(file, cls.cythonClass());
|
||||||
file.oss << pyRename(name_) + " \"" + name_ + "\"" << "(";
|
file.oss << pyRename(name_) + " \"" + name_ + "\"" << "(";
|
||||||
// ((name_ == "print") ? "_print \"print\"" : name_) << "(";
|
|
||||||
argumentList(i).emit_cython_pxd(file, cls.cythonClass());
|
argumentList(i).emit_cython_pxd(file, cls.cythonClass());
|
||||||
file.oss << ")";
|
file.oss << ")";
|
||||||
if (is_const_) file.oss << " const";
|
if (is_const_) file.oss << " const";
|
||||||
|
|
Loading…
Reference in New Issue