Skip to content

gh-85260: Extend the AST Validator to validate all identifiers - #21069

Open
isidentical wants to merge 3 commits into
python:mainfrom
isidentical:bpo-41088
Open

gh-85260: Extend the AST Validator to validate all identifiers#21069
isidentical wants to merge 3 commits into
python:mainfrom
isidentical:bpo-41088

Conversation

@isidentical

@isidentical isidentical commented Jun 23, 2020

Copy link
Copy Markdown
Member

Comment thread Python/ast.c
static int
validate_name(PyObject *name)
validate_name(const char* owner, PyObject *name)
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In validate_name owner is the first arg and in validate_import_names it is the last arg.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other arguments besides owner are different in validate_name() and validate_import_names(), so I do not see a problem here.

@furkanonder

Copy link
Copy Markdown
Contributor

@isidentical Could you resolve the conflicts?

@iritkatriel iritkatriel added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Nov 23, 2023

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please resolve conflicts.

Comment thread Python/ast.c
static int
validate_name(PyObject *name)
validate_name(const char* owner, PyObject *name)
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other arguments besides owner are different in validate_name() and validate_import_names(), so I do not see a problem here.

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 8, 2026
# Conflicts:
#	Lib/test/test_ast.py
#	Misc/NEWS.d/next/Core_and_Builtins/2020-06-23-13-59-37.bpo-41088.o_LJ76.rst
#	Python/ast.c
@serhiy-storchaka serhiy-storchaka changed the title bpo-41088: Extend the AST Validator to validate all identifiers gh-85260: Extend the AST Validator to validate all identifiers Aug 12, 2026
The change is for pythongh-85260 (bpo-41088), not pythongh-85270 (bpo-41098).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge interpreter-core (Objects, Python, Grammar, and Parser dirs) stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants