News for hackers. Stuff that matters.
Re:In defense of blocks for local scopes by andreareina on Sunday June 26, 2022 @04:42AM (#31882164)
Plain context manager doesn't actually introduce a new scope:

    with open("foo") as f:
        s = f.read()
    print(f) # closed file object still exists
A macro that looks like a context manager would work but beware the edge cases.

There are no comments on this comment yet.