2 ms·
One difference is that Ruby does not need a special language construct/protocol to do so. An other is that Python's "context managers" are reified which means
by masklinn 9y ago
One difference is that Ruby does not need a special language construct/protocol to do so.
An other is that Python's "context managers" are reified which means you can pass them around until you ultimately use them. It's a tradeoff.