From 3bbdb6dd1fb04c8b8379c751e5e0e0afe04c1d3f Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Wed, 31 Mar 2021 07:12:08 +0200 Subject: Not using the FunctionMaker in ContextManager --- src/tests/documentation.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/tests/documentation.py') diff --git a/src/tests/documentation.py b/src/tests/documentation.py index b827c1a..ec04c6d 100644 --- a/src/tests/documentation.py +++ b/src/tests/documentation.py @@ -1282,19 +1282,6 @@ notice that lately I have come to believe that decorating functions with keyword arguments is not such a good idea, and you may want not to do that. -On a similar note, there is a restriction on argument names. For instance, -if you name an argument ``_call_`` or ``_func_``, you will get a ``NameError``: - -```python ->>> @trace -... def f(_func_): print(f) -... -Traceback (most recent call last): - ... -NameError: _func_ is overridden in -def f(_func_): - return _call_(_func_, _func_) - Finally, the implementation is such that the decorated function makes a (shallow) copy of the original function dictionary: -- cgit v1.2.1