Skip to content

Eliminate legacy checks in curses.__init__ #133575

@picnixz

Description

@picnixz

Feature or enhancement

Proposal:

Some checks in curses.__init__ are now obsolete, essentially because of how the C functions are now implemented. For instance, start_color() checks for whether _curses.COLORS exists, but it will always exist if the call to _curses.start_color() succeeds.

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

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions