GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bpo-44257: fix "assigment_expr" typo + regenerate the grammar, and re… · python/cpython@762173c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Grammar
    • python.gram
  • Parser
    • parser.c
  • Tools/peg_generator/pegen
    • python_generator.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Grammar/python.gram‎

Copy file name to clipboardExpand all lines: Grammar/python.gram
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -642,11 +642,11 @@ star_named_expression[expr_ty]:
642642
| '*' a=bitwise_or { _PyAST_Starred(a, Load, EXTRA) }
643643
| named_expression
644644

645-
assigment_expression[expr_ty]:
645+
assignment_expression[expr_ty]:
646646
| a=NAME ':=' ~ b=expression { _PyAST_NamedExpr(CHECK(expr_ty, _PyPegen_set_expr_context(p, a, Store)), b, EXTRA) }
647647

648648
named_expression[expr_ty]:
649-
| assigment_expression
649+
| assignment_expression
650650
| invalid_named_expression
651651
| expression !':='
652652

@@ -903,7 +903,7 @@ setcomp[expr_ty]:
903903
| invalid_comprehension
904904

905905
genexp[expr_ty]:
906-
| '(' a=( assigment_expression | expression !':=') b=for_if_clauses ')' { _PyAST_GeneratorExp(a, b, EXTRA) }
906+
| '(' a=( assignment_expression | expression !':=') b=for_if_clauses ')' { _PyAST_GeneratorExp(a, b, EXTRA) }
907907
| invalid_comprehension
908908

909909
dictcomp[expr_ty]:
@@ -918,7 +918,7 @@ arguments[expr_ty] (memo):
918918
| invalid_arguments
919919

920920
args[expr_ty]:
921-
| a[asdl_expr_seq*]=','.(starred_expression | ( assigment_expression | expression !':=') !'=')+ b=[',' k=kwargs {k}] {
921+
| a[asdl_expr_seq*]=','.(starred_expression | ( assignment_expression | expression !':=') !'=')+ b=[',' k=kwargs {k}] {
922922
_PyPegen_collect_call_seqs(p, a, b, EXTRA) }
923923
| a=kwargs { _PyAST_Call(_PyPegen_dummy_name(p),
924924
CHECK_NULL_ALLOWED(asdl_expr_seq*, _PyPegen_seq_extract_starred_exprs(p, a)),

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.