1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00

Add pyext support for @tuple.__new__

This commit is contained in:
Ibrahim Numanagić 2023-03-30 10:51:03 -07:00
parent 9ef321ca4a
commit d1b5279ffa

View File

@ -452,7 +452,7 @@ void Cache::populatePythonModule() {
py.iter = f;
} else if (n == "__del__") {
py.del = f;
} else if (n == "__init__") {
} else if (n == "__init__" || (c.ast->hasAttr(Attr::Tuple) && n == "__new__")) {
py.init = f;
} else {
py.methods.push_back(ir::PyFunction{