From 7722824acdd1c1718f0bdc885bb1c982dfa7f688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 3 Dec 2019 04:28:40 +0100 Subject: [PATCH] Decorator --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 34b1140..7c8ffbb 100644 --- a/README.md +++ b/README.md @@ -904,7 +904,7 @@ def debug(func): def add(x, y): return x + y ``` -* **Wraps is a helper decorator that copies the metadata of a passed function (func) to the function it is wrapping (out).** +* **Wraps is a helper decorator that copies the metadata of the passed function (func) to the function it is wrapping (out).** * **Without it `'add.__name__'` would return `'out'`.** ### LRU Cache @@ -918,7 +918,7 @@ def fib(n): return n if n < 2 else fib(n-2) + fib(n-1) ``` -* **Recursion depth is limited to 1000 by default. To increase it use `'sys.setrecursionlimit()'`.** +* **In CPython recursion depth is limited to 1000 by default. To increase it use `'sys.setrecursionlimit()'`.** ### Parametrized Decorator **A decorator that accepts arguments and returns a normal decorator that accepts a function.** diff --git a/index.html b/index.html index db566fd..04b5603 100644 --- a/index.html +++ b/index.html @@ -882,7 +882,7 @@ creature = Creature(Point(0,