hongweipeng <hongweichen8...@sina.com> added the comment:

>>> from datetime import timedelta as a
>>> from _datetime import timedelta as b
>>> a is b
True
>>>

`timedelta` is a C-level class, so inspect.signature(timedelta) is the same 
with inspect.signature(int).

But `signature` allow C-level function such as `inspect.signature(len)`, I 
think one way to improve is to use the C-level function when the python-level 
function cannot be found.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40897>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to