Skip to content

gh-113317, Argument Clinic: Add DSLParser.fail() method - #115370

Closed
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:ac_dslparser
Closed

gh-113317, Argument Clinic: Add DSLParser.fail() method#115370
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:ac_dslparser

Conversation

@vstinner

@vstinnervstinner commented Feb 12, 2024

Copy link
Copy Markdown
Member
  • Add 'lineno' parameter to DSLParser.format_docstring() method.
  • DSLParser.do_post_block_processing_cleanup() now pass 'lineno' to format_docstring() and so log the line number on error.

This change prepares the code to move the fail() function to a Clinic.fail() method to avoid the 'clinic' global variable.

* Add 'lineno' parameter to DSLParser.format_docstring() method.
* DSLParser.do_post_block_processing_cleanup() now pass 'lineno' to
format_docstring() and so log the line number on error.
This change prepares the code to move the fail() function to a
Clinic.fail() method to avoid the 'clinic' global variable.
@erlend-aasland

Copy link
Copy Markdown
Contributor

Obsoleted by #115510

@vstinner
vstinner deleted the ac_dslparser branch February 15, 2024 14:05
Sign up for freeto 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.

2 participants

@vstinner@erlend-aasland