Skip to content

IDLE: Stop reusing built-in names as parameters #96905

Closed
@terryjreedy

Description

@terryjreedy

Some idlelib functions use built-in names such as 'object', 'dict', and 'type' as function parameter names. As a result, these parameter names are mistakenly highlighted as builtin names. Unless a parameter name is used as a keyword in any call of the function, changing a parameter name within a function should cause no problems.

The easiest name change is to append '_'. That is what I have done so far to get 'object_' and 'dict_' in my b_ins branch.
EDIT: In appropriate places, I prefixed 'g' or 'l', for 'global or 'local', to 'dict'.

Dependency of #87179

Linked PRs

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions