Skip to content

Commit bc2bc1c

Browse files
author
dodo
committed
Hinweis auf contextlib
1 parent e6c5dc3 commit bc2bc1c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Level_08/with.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@
3131
with tempfile.TemporaryDirectory() as tmpdir:
3232
with open(join(tmpdir, "test.txt"), "w") as test:
3333
test.write("Dies ist auch ein Test.\n")
34+
35+
# contextlib bietet Decoratoren an um eigene Contextmanager zu erstellen:
36+
# https://docs.python.org/3/library/contextlib.html

0 commit comments

Comments
 (0)