Code: Select all
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> iter(int, 1)
<callable_iterator object at 0x7f2623b7c100>
>>>
Code: Select all
MicroPython v1.17-80-g4c9e17e0a-dirty on 2021-10-14; linux version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> iter(int, 1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: function takes 1 positional arguments but 2 were given
>>>