Do not Cythonize underscore fns

pull/335/head
Ibrahim Numanagić 2023-02-16 19:15:49 -08:00
parent 6a2db4758a
commit 2ead2590aa
1 changed files with 2 additions and 0 deletions

View File

@ -582,6 +582,8 @@ void Cache::populatePythonModule() {
for (const auto &[fn, f] : functions)
if (f.isToplevel) {
auto fnn = overloads[f.rootName].back().name; // last overload
if (startswith(rev(fnn), "_"))
continue;
LOG("[py] functn {} => {}", rev(fn), fnn);
auto ir = getFn(fnn);
pyModule->functions.push_back(ir::PyFunction{rev(fn), f.ast->getDocstr(), ir,