Skip to content

Conversation

@chemelnucfin
Copy link
Contributor

@chemelnucfin chemelnucfin commented Aug 27, 2025

Trivial changes, like fixing a typo, do not need an issue.

Typo in parser_generator. Not used anywhere else

[localhost cpython]$ git grep rulses
Tools/peg_generator/pegen/parser_generator.py:        self.rulses = rules

@picnixz picnixz changed the title typo - self.rulses -> self.rules Fix attribute's typo name in Tools/peg_generator/pegen/parser_generator.py Aug 30, 2025
@picnixz picnixz changed the title Fix attribute's typo name in Tools/peg_generator/pegen/parser_generator.py Fix attribute name typo in Tools/peg_generator/pegen/parser_generator.py Aug 30, 2025
@picnixz
Copy link
Member

picnixz commented Aug 30, 2025

I want an issue for this, just for posterity. I'm creating one.

@picnixz picnixz changed the title Fix attribute name typo in Tools/peg_generator/pegen/parser_generator.py gh-138257: Fix internal RuleCollectorVisitor attribute name Aug 30, 2025
@picnixz
Copy link
Member

picnixz commented Aug 30, 2025

Trivial changes, like fixing a typo, do not need an issue.

In general, they don't but only if they are documentation-oriented. Runtime changes do need an issue for tracking purposes and so that others can reply to the issue if this changed something for them.

@picnixz

This comment was marked as resolved.

@StanFromIreland

This comment was marked as resolved.

@StanFromIreland StanFromIreland added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Aug 30, 2025
@picnixz picnixz merged commit 11217a8 into python:main Aug 30, 2025
67 checks passed
@miss-islington-app
Copy link

Thanks @chemelnucfin for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 30, 2025
…ythonGH-138208)

The internal `RuleCollectorVisitor` class had an attribute named "rulses"
instead of "rules" that other `GrammarVisitor` subclasses define.
(cherry picked from commit 11217a8)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 30, 2025
…ythonGH-138208)

The internal `RuleCollectorVisitor` class had an attribute named "rulses"
instead of "rules" that other `GrammarVisitor` subclasses define.
(cherry picked from commit 11217a8)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
@bedevere-app
Copy link

bedevere-app bot commented Aug 30, 2025

GH-138259 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Aug 30, 2025
@bedevere-app
Copy link

bedevere-app bot commented Aug 30, 2025

GH-138260 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Aug 30, 2025
picnixz pushed a commit that referenced this pull request Aug 30, 2025
…H-138208) (#138260)

gh-138257: Fix internal `RuleCollectorVisitor` attribute name (GH-138208)

The internal `RuleCollectorVisitor` class had an attribute named "rulses"
instead of "rules" that other `GrammarVisitor` subclasses define.
(cherry picked from commit 11217a8)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
hugovk pushed a commit that referenced this pull request Aug 31, 2025
…H-138208) (#138259)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
… name (pythonGH-138208) (python#138259)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
…ython#138208)

The internal `RuleCollectorVisitor` class had an attribute named "rulses"
instead of "rules" that other `GrammarVisitor` subclasses define.
@chemelnucfin chemelnucfin deleted the patch-2 branch September 21, 2025 03:33
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.

5 participants