tuple member access¶
dot-access tuple elements by position. expr.N where N is a non-negative
integer lowers to expr[N]:
transpiles to:
works on any expression, not just name bindings. literal tuples need no parentheses beyond the tuple itself:
transpiles to:
chaining¶
multiple dot indices compose, and mix freely with regular attribute access, calls, and subscripts:
transpiles to:
scope¶
expr.N is the only basedpython form of dot-indexing. negative indices,
slices, and non-digit selectors fall through to ordinary attribute access
and remain Expr.attr in the AST
see also¶
- keyword arguments in subscripts —
x[a, z=1]lowering