Closed
Description
In Cpython somefunc.func_name
contains the function name. This attribute is not available in Micro Python.
E.g. (using Ipython):
In [6]: def f(): pass
In [7]: f
Out[7]: <function __main__.f>
In [8]: f.func_name
Out[8]: 'f'
In MicroPython:
>>> def f(): pass
...
>>> f
<function>
>>> f.func_name
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'function' object has no attribute 'func_name'
Cheers
Metadata
Metadata
Assignees
Labels
No labels