From e0d9bb1877a69a08f710fa1a784fae9e00aa422f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 1 Feb 2020 02:17:42 +0100 Subject: [PATCH] Context manager --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a51a845..ec73e79 100644 --- a/README.md +++ b/README.md @@ -1169,7 +1169,7 @@ class Counter: ``` ### Context Manager -* **Enter() should lock the resources and return an object.** +* **Enter() should lock the resources and (optionally) return an object.** * **Exit() should release the resources.** * **Any exception that happens inside the with block is passed to the exit() method.** * **If it wishes to suppress the exception it must return a true value.** diff --git a/index.html b/index.html index fb271cd..20c5766 100644 --- a/index.html +++ b/index.html @@ -1113,7 +1113,7 @@ Z = dataclasses.make_dataclass('Z', [1, 2, 3)

Context Manager