src/pylib/pysugar/pywith
Theme:
🌗 Match OS
🌑 Dark
🌕 Light
Index
Search:
Group by:
Section
Type
Macros
with
with(args: varargs[untyped]): untyped
Source
Edit
Macros
macro
with
(
args
:
varargs
[
untyped
]
)
:
untyped
Python-like with statement. Supports most of the possible variants Python with statement supports. Context managers are supported but need to use
enter
(
)
and
exit
(
)
or
open
(
)
and
close
(
)
instead of the underscored names.
Source
Edit