SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72156 0 67 Python

gh-70870: Clarify dual usage of 'free variable' (#122545)

The term "free variable" has unfortunately become genuinely
ambiguous over the years (presumably due to the names of
some relevant code object instance attributes).

While we can't eliminate that ambiguity at this late date, we can
at least alert people to the potential ambiguity by describing
both the formal meaning of the term and the common
alternative use as a direct synonym for "closure variable".

---------

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
A
Alyssa Coghlan committed
27390990fa9306e2a797a4eb2bd83c5bfc7cb186
Parent: cc9b9be
Committed by GitHub <noreply@github.com> on 10/8/2024, 7:52:12 AM