ni / ni/nimi-python

Session methods sort by C function name, not by the method name

Open
#591 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

codegen priority-low
Dominant language
Python
Stars
128
Forks
110
Avg merge
5d 14h
Merged PRs (30d)
10

Description

Session methods are sorted alphabetically by C function name, not by its name used in Python API ('python_name' in metadata).

This is generally the same, but we support providing a manually entered "python_name" in functions_addon.py. In some cases, this means that the generated code shows up in the "wrong" place in the metadata.

Contributor guide

Open the contributing guide

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.

Research direction

Start by reading functions_addon.py and trace how session methods are sorted before the generated metadata is produced. Confirm the ordering behavior for functions with a manually specified python_name. Done means generated metadata orders session methods by their Python API names rather than C function names, with the relevant behavior verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.