3 ms·
I'll need to see an example to understand the issue. The idioms between the two languages are different enough that idiomatic Go might be written a different wa
by eesmith 9y ago
I'll need to see an example to understand the issue. The idioms between the two languages are different enough that idiomatic Go might be written a different way for idiomatic Python.
Remember, "with" isn't always required - you can also write the code using a try/finally.