diff options
Diffstat (limited to 'tests/basics/fun_name.py')
| -rw-r--r-- | tests/basics/fun_name.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/basics/fun_name.py b/tests/basics/fun_name.py index bb1f14992..b2642280a 100644 --- a/tests/basics/fun_name.py +++ b/tests/basics/fun_name.py @@ -24,9 +24,11 @@ except AttributeError: pass # name of a function that has closed over variables +# and also the name of the inner closure def outer(): x = 1 def inner(): return x return inner print(outer.__name__) +print(outer().__name__) |
