MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / Subscript

Function Subscript

tools/python-3.11.9-amd64/Lib/lib2to3/fixer_util.py:77–81  ·  view source on GitHub ↗

A numeric or string subscript

(index_node)

Source from the content-addressed store, hash-verified

75 return Leaf(token.NUMBER, n, prefix=prefix)
76
77def Subscript(index_node):
78 """A numeric or string subscript"""
79 return Node(syms.trailer, [Leaf(token.LBRACE, "["),
80 index_node,
81 Leaf(token.RBRACE, "]")])
82
83def String(string, prefix=None):
84 """A string leaf"""

Callers 2

map_to_indexFunction · 0.85
transformMethod · 0.85

Calls 2

LeafClass · 0.85
NodeClass · 0.70

Tested by

no test coverage detected