3 ms·
That is correct. Python used to be worse; it used to share scope outside the list comprehension.
by paulddraper 3y ago
That is correct.
Python used to be worse; it used to share scope outside the list comprehension.
- nightfly 3y agoIt still does for regular loops right?
- thatguysaguy 3y agoYeah loops don't get their own scopes (unless you add one using this thing I made as a joke: https://github.com/davisyoshida/360blockscope https://github.com/davisyoshida/360blockscope)