python/docs/reference/simple_statements

simple_statements

dz / python / docs / reference / simple_statements

Node Tree

Nodes

nonlocal
content nonlocal: causes listed identifiers to refer to names previously bound in nonlocal scope
parents python/docs/reference/simple_statements, leetcode/problems/543_diameter_of_binary_tree
hyperlink https://docs.python.org/3/reference/simple_stmts.html#the-nonlocal-statement