Staging
v0.5.1
https://github.com/python/cpython
Revision f4934ea77da38516731a75fbf9458b248d26dd81 authored by Serhiy Storchaka on 16 November 2016, 08:17:58 UTC, committed by Serhiy Storchaka on 16 November 2016, 08:17:58 UTC
The latter function is more readable, faster and doesn't raise exceptions.
1 parent 5ebff7b
Raw File
Tip revision: f4934ea77da38516731a75fbf9458b248d26dd81 authored by Serhiy Storchaka on 16 November 2016, 08:17:58 UTC
Issue #28701: Replace PyUnicode_CompareWithASCIIString with _PyUnicode_EqualToASCIIString.
Tip revision: f4934ea
future_test2.py
"""This is a test"""

from __future__ import nested_scopes; import site

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

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