From 6ce91f48664ed799c7c8616f29979c826c8118fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 5 Jul 2019 01:26:29 +0200 Subject: [PATCH] Partial --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8faf075..b2dbd4e 100644 --- a/README.md +++ b/README.md @@ -827,7 +827,7 @@ from functools import partial >>> multiply_by_3(10) 30 ``` -* **Partial is useful in cases when a function needs to be passed as an argument, because it enables us to set the arguments beforehand.** +* **Partial is also useful in cases when a function needs to be passed as an argument, because it enables us to set its arguments beforehand.** * **A few examples being `'defaultdict()'`, `'iter(, to_exclusive)'` and dataclass's `'field(default_factory=)'`.** ### Nonlocal diff --git a/index.html b/index.html index 3514baf..023a1b5 100644 --- a/index.html +++ b/index.html @@ -802,7 +802,7 @@ creature = Creature(Point(0, 30
    -
  • Partial is useful in cases when a function needs to be passed as an argument, because it enables us to set the arguments beforehand.
  • +
  • Partial is also useful in cases when a function needs to be passed as an argument, because it enables us to set its arguments beforehand.
  • A few examples being 'defaultdict(<function>)', 'iter(<function>, to_exclusive)' and dataclass's 'field(default_factory=<function>)'.

Nonlocal