Consider the following example:
with open('a.txt') as f: pass
I read the language documents (2.7) for for-statement as well as PEP-343, but as far as I can tell, they don't say anything about this.
In CPython 2.6.5, f seems to be defined outside the c-block, but I would rather not rely on implementation details that may change.
python
Heikki Toivonen Jun 21 2018-11-21T00: 00Z
source share