Months of using context managers in Python and just now I learned that variables inside it are discarded (like local variables outside of functions), thanks to recurrently feeding it back to chatGPT. I never knew that, because all I was using them for was opening files :)