491cbd6a7c
Need to have a policy as to how far we go adding keyword support to built ins. It's nice to have, and gets better CPython compatibility, but hurts the micro nature of uPy. Addresses issue #577.
11 lines
343 B
Python
11 lines
343 B
Python
print(list(enumerate([])))
|
|
print(list(enumerate([1, 2, 3])))
|
|
print(list(enumerate([1, 2, 3], 5)))
|
|
print(list(enumerate([1, 2, 3], -5)))
|
|
print(list(enumerate(range(1000))))
|
|
|
|
# specifying args with keywords
|
|
print(list(enumerate([1, 2, 3], start=1)))
|
|
print(list(enumerate(iterable=[1, 2, 3])))
|
|
print(list(enumerate(iterable=[1, 2, 3], start=1)))
|