[Mlir-commits] [mlir] [mlir][python] Add stable ABI (abi3) support (PR #183856)
Jakub Kuderski
llvmlistbot at llvm.org
Sat Feb 28 11:13:58 PST 2026
================
@@ -1877,7 +1876,8 @@ MLIR_PYTHON_API_EXPORTED void populateRoot(nanobind::module_ &m);
template <class Func, typename... Args>
inline nanobind::object classmethod(Func f, Args... args) {
nanobind::object cf = nanobind::cpp_function(f, args...);
- return nanobind::borrow<nanobind::object>((PyClassMethod_New(cf.ptr())));
+ nanobind::object builtins = nanobind::module_::import_("builtins");
----------------
kuhar wrote:
TIL. Thanks for the suggestion.
https://github.com/llvm/llvm-project/pull/183856
More information about the Mlir-commits
mailing list