Skip to content

Argument Clinic dead code in _cursesmodule.c #134208

Closed
@picnixz

Description

@picnixz

Bug report

Bug description:

There are some occurrences of /*[-clinic input], such as

  • _curses.window.chgat
  • _curses.window.getstr
  • _curses.window.instr

In particular, those are misleading as one could assume that it's being handled by clinic but it's not. I believe it was historically impossible for clinic to do the necessary trick. I will modernize curses so that it either uses clinic in its full or remove the clinic directives.

Note: I cannot backport this to 3.13 as the file has been heavily modified in 3.14 to accomodate for heap types instead of static types.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Activity

self-assigned this
on May 19, 2025
added 2 commits that reference this issue on May 26, 2025

gh-134208: remove dead AC directives for `_curses.window.{chgat,getst…

29e8115

[3.14] pythongh-134208: remove dead AC directives for `_curses.window…

added a commit that references this issue on May 26, 2025

[3.14] gh-134208: remove dead AC directives for `_curses.window.{chga…

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

Metadata

Metadata

Assignees

Labels

extension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Argument Clinic dead code in `_cursesmodule.c` · Issue #134208 · python/cpython

    Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

    Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant