Skip to content

Convert _interpreters to Argument Clinic #137630

Description

@AA-Turner

Feature or enhancement

Proposal:

_interpretersmodule.c currently exclusively uses PyArg_ParseTupleAndKeywords/PyArg_ParseTuple.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    type-refactorCode refactoring (with no changes in behavior)
    on Aug 11, 2025
  2. added 2 commits that reference this issue on Aug 12, 2025
  3. hnnynh commented on Aug 15, 2025

    @hnnynh
    Contributor

    It seems that _interpchannels also needs to be worked on.
    Would it be okay for me to submit a PR(Convert _interpchannels to use Argument Clinic)?

  4. corona10 commented on Aug 15, 2025

    @corona10
    Member

    @AA-Turner @hnnynh is a first-time sprint participant at PyCon KR, and my colleague, it would be a good task to be familiar with the CPython code base with this task.

  5. AA-Turner commented on Aug 15, 2025

    @AA-Turner
    MemberAuthor

    Thanks for the proposal both, I think we should wait here as there is an open PR waiting for Eric S.'s feedback.

    Hopefully you can find another good issue to work on during the sprint @corona10 @hnnynh!

    A

  6. corona10 commented on Aug 15, 2025

    @corona10
    Member

    @AA-Turner Hi,
    The sprint day has wrapped up today, but I think one of the main purposes of organizing sprints is to find promising contributor candidates. Would it be okay for her to follow up on the _interpchannels module if @ericsnowcurrently approves the other PR?

    Best,
    Donghee

  7. AA-Turner commented on Aug 15, 2025

    @AA-Turner
    MemberAuthor

    Converting an entire module to Argument Clinic all at once can be quite tricky, _interpqueues.c wasn't very straightforwards (it involved writing a custom converter, which is fairly advanced even for AC). I'd prefer to do _interpchannels myself for this reason, and to keep consistency.

    For a new contributor, perhaps you would want to try converting _json.c to Argument Clinic instead? I would happy to help review @hnnynh's PR to do this @corona10 :-)

    There are four functions to convert in _json, so hopefully it should not be too hard!

    A

  8. AA-Turner commented on Aug 15, 2025

    @AA-Turner
    MemberAuthor
  9. added 2 commits that reference this issue on Aug 19, 2025
  10. added a commit that references this issue on Sep 17, 2025
  11. ZeroIntensity commented on Sep 18, 2025

    @ZeroIntensity
    Member

    @AA-Turner Is this done?

  12. AA-Turner commented on Sep 18, 2025

    @AA-Turner
    MemberAuthor

    No (_interpchannels remains).

    A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions