PythonCall.jl icon indicating copy to clipboard operation
PythonCall.jl copied to clipboard

python `with` syntax

Open jebej opened this issue 2 years ago • 1 comments

I see in the PyMacro file there is a todo item for adding the with syntax. Is there any alternative currently?

jebej avatar Nov 08 '23 14:11 jebej

Your alternatives are to use the pywith function or to call __enter__ and __exit__ yourself.

cjdoris avatar Nov 09 '23 22:11 cjdoris