mlc-ai / mlc-ai/mlc-python

Enhancement to `mlc.dataclasses.c_class`

Open
#67 1 comment 0 reactions 1 assignee View on GitHub

@potatomashed is already working on this.

Since May 8, 2025.

Feature Request
Dominant language
C++
Stars
36
Forks
7
PR merge metrics
No merged PRs in 30d

Description

c_class is used to reflect a class defined on C++ side to Python in zero copy, without the overhead of pybind or any other 3rdparty FFI tools.

However, the features supported in c_class is not on parity with py_class yet. Namely:

  • The default __str__ method is not as good looking as py_class's #69
  • frozen=True is not supported
  • Per-field init=False is not supported yet.

Those are easy features to implement but lacking. Contributions are welcome!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.