Message209728
LGTM, thanks!
And works nicely with Cython:
"""
import inspect
def test_isfunction():
"""
>>> test_isfunction()
True
"""
return inspect.isfunction(test_isfunction)
def test_signature():
"""
>>> test_signature() # doctest: +ELLIPSIS
<inspect.Signature object ...>
"""
return inspect.signature(test_signature)
"""
> BTW, do cython functions have __name__ attribute?
Yes, they have everything that can possibly be emulated (although not
everything currently contains useful information). If your question is
whether that should be tested for, too, then I'd say yes. |
|
Date |
User |
Action |
Args |
2014-01-30 17:15:30 | scoder | set | recipients:
+ scoder, terry.reedy, ncoghlan, pitrou, benjamin.peterson, eric.araujo, yselivanov |
2014-01-30 17:15:30 | scoder | link | issue17159 messages |
2014-01-30 17:15:30 | scoder | create | |
|