Staging
v0.5.1
https://github.com/python/cpython
Revision 7f82f22eba1312617e1aa19cb916da1aae1609a4 authored by Raymond Hettinger on 30 November 2020, 17:55:13 UTC, committed by GitHub on 30 November 2020, 17:55:13 UTC
1 parent e41bfd1
Raw File
Tip revision: 7f82f22eba1312617e1aa19cb916da1aae1609a4 authored by Raymond Hettinger on 30 November 2020, 17:55:13 UTC
bpo-42501: Revise the usage note for Enums with the choices (GH-23563)
Tip revision: 7f82f22
badsyntax_future7.py
"""This is a test"""

from __future__ import nested_scopes; import string; from __future__ import \
     nested_scopes

def f(x):
    def g(y):
        return x + y
    return g

result = f(2)(4)
back to top