simplify python constructor call
parent
83d3f21fd8
commit
a294c2ab11
|
@ -147,8 +147,8 @@ void Constructor::emit_cython_pyx(FileWriter& pyxFile, const Class& cls) const {
|
|||
for (size_t i = 0; i < nrOverloads(); i++) {
|
||||
ArgumentList args = argumentList(i);
|
||||
pyxFile.oss << "\t@staticmethod\n";
|
||||
pyxFile.oss << "\tdef __Create"
|
||||
<< ((i > 0) ? to_string(i) : "") << "__(";
|
||||
pyxFile.oss << "\tdef ctor"
|
||||
<< ((i > 0) ? to_string(i) : "") << "(";
|
||||
args.emit_cython_pyx(pyxFile);
|
||||
pyxFile.oss << "): \n";
|
||||
|
||||
|
|
Loading…
Reference in New Issue