Skip to content

Commit

Permalink
Merge 829f86a into cba723f
Browse files Browse the repository at this point in the history
  • Loading branch information
flowergrass committed Jan 17, 2017
2 parents cba723f + 829f86a commit 8910831
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/basics/fun_calldblstar3.py
Expand Up @@ -5,7 +5,7 @@ def foo(**kw):

class Mapping:
def keys(self):
return ['a', 'b', 'c']
return ['a', 'b', 'c', 'abcdefghijk'] # long string internalised

def __getitem__(self, key):
if key == 'a':
Expand Down
5 changes: 5 additions & 0 deletions tests/basics/fun_callstar.py
Expand Up @@ -34,3 +34,8 @@ def foo(self, a, b, c):

# Iterator
a.foo(*range(3))

def foo(*rest):
print(rest)

foo(*range(5)) # doubles memory allocation for arguments starting after 4
3 changes: 3 additions & 0 deletions tests/basics/iter0.py
Expand Up @@ -4,3 +4,6 @@
pass
except TypeError:
print('TypeError')

#builtin type that is iterable
print(iter(range(4)).__next__())

0 comments on commit 8910831

Please sign in to comment.