Skip to content

gh-64502: Convert curses methods with optional groups to Argument Clinic - #155229

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:curses-clinic-groups
Aug 5, 2026
Merged

gh-64502: Convert curses methods with optional groups to Argument Clinic#155229
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:curses-clinic-groups

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 5, 2026

Copy link
Copy Markdown
Member

chgat(), getstr(), instr(), get_wstr(), in_wstr() and in_wchstr() were parsing their arguments by hand, because Argument Clinic did not support their signatures.

chgat() needs two optional groups on the same level ([y, x,] [n=-1,] attr), the other five need a parameter with a default value after an optional group ([y, x,] n=2047).

Their helper for parsing the optional y, x and n arguments is no longer needed.

…nt Clinic

chgat(), getstr(), instr(), get_wstr(), in_wstr() and in_wchstr() were
parsing their arguments by hand, because Argument Clinic did not support
their signatures.  Their helper for parsing the optional y, x and n
arguments is no longer needed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka merged commit ea85e8f into python:main Aug 5, 2026
54 checks passed
@serhiy-storchaka
serhiy-storchaka deleted the curses-clinic-groups branch August 5, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant