From 553f8dd4c7fa70cca6b0526d7a0c9b8aada5d7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 11 Mar 2020 12:06:03 +0100 Subject: [PATCH] Duck types --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d28b3b8..07e7822 100644 --- a/README.md +++ b/README.md @@ -1146,7 +1146,7 @@ class Counter: ``` #### Python has many different iterator objects: -* **Objects returned by the [iter()](#iterator) function, such as list\_iterator and set\_iterator.** +* **Iterators returned by the [iter()](#iterator) function, such as list\_iterator and set\_iterator.** * **Objects returned by the [itertools](#itertools) module, such as count, repeat and cycle.** * **Generators returned by the [generator functions](#generator) and [generator expressions](#comprehension).** * **File objects returned by the [open()](#open) function, etc.** @@ -1170,7 +1170,7 @@ class Counter: ``` ### Context Manager -* **Enter() should lock the resources and (optionally) 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 2c1019f..e452d20 100644 --- a/index.html +++ b/index.html @@ -1093,7 +1093,7 @@ Z = dataclasses.make_dataclass('Z', [1, 2, 3)

Python has many different iterator objects: