From 3ab544660c8ff8a1c34ff1c0b1fe9569be82b9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 7 Sep 2019 23:22:27 +0200 Subject: [PATCH] Decorator --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d6aeb9f..b8208d8 100644 --- a/README.md +++ b/README.md @@ -900,7 +900,7 @@ def debug(func): def add(x, y): return x + y ``` -* **Wraps is a helper decorator that copies metadata of function add() to function out().** +* **Wraps is a helper decorator that copies metadata of function func() to function out().** * **Without it `'add.__name__'` would return `'out'`.** ### LRU Cache diff --git a/index.html b/index.html index 1d376a9..a876c1a 100644 --- a/index.html +++ b/index.html @@ -875,7 +875,7 @@ creature = Creature(Point(0, 'add.__name__' would return 'out'.

LRU Cache

Decorator that caches function's return values. All function's arguments must be hashable.

from functools import lru_cache