tests/cpydiff: Remove builtin_next_arg2.py difference.
Because 2-arg `next()` is implemented, and now enabled at the basic feature level. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
56e90cb60b
commit
994751c251
1 changed files with 0 additions and 13 deletions
|
|
@ -1,13 +0,0 @@
|
|||
"""
|
||||
categories: Modules,builtins
|
||||
description: Second argument to next() is not implemented
|
||||
cause: MicroPython is optimised for code space.
|
||||
workaround: Instead of ``val = next(it, deflt)`` use::
|
||||
|
||||
try:
|
||||
val = next(it)
|
||||
except StopIteration:
|
||||
val = deflt
|
||||
"""
|
||||
|
||||
print(next(iter(range(0)), 42))
|
||||
Loading…
Reference in a new issue