From b06d454682455622b7403ef5dd5450bdcbcc18b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 23 Feb 2019 21:03:01 +0100 Subject: [PATCH] Partial --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5cf9495..25c4a1b 100644 --- a/README.md +++ b/README.md @@ -590,7 +590,7 @@ def get_multiplier(a): * **If multiple nested functions within enclosing function reference the same value, that value gets shared.** * **To dynamically access function's first free variable use `'.__closure__[0].cell_contents'`.** -#### Or: +### Partial ```python from functools import partial = partial(, [, , ...]) @@ -1072,7 +1072,7 @@ import json = json.loads() ``` -#### To preserve order: +#### To preserve order use: ```python from collections import OrderedDict = json.loads(, object_pairs_hook=OrderedDict)