Testing #22287
import string
for letter in string.ascii_lowercase[::-1]:
print(letter)
If I haven't shift+enter on import string yet and I go to shift+enter on the for loop, I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'string' is not defined
which makes sense based on the TPI... however, as a suspect some folks may have large files with many imports at the top, it'd be nice if those imports were automatically run.