Commit 64c51006 authored by Stefan Behnel's avatar Stefan Behnel

Merge branch '0.23.x'

parents bc88b4ae 9d5ee4fa
......@@ -1739,7 +1739,7 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
if len(args) <= 1:
if len(args) == 1 and args[0].is_sequence_constructor:
args = args[0].args
if len(args) < 1:
if len(args) <= 1:
# leave this to Python
return node
......
......@@ -8,6 +8,16 @@ class loud_list(list):
# max()
def test_max1(x):
"""
>>> test_max1([1, 2, 3])
3
>>> test_max1([2])
2
"""
return max(x)
@cython.test_assert_path_exists(
'//PrintStatNode//CondExprNode')
@cython.test_fail_if_path_exists(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment