Message397606
>>> 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. |
|
Date |
User |
Action |
Args |
2021-07-16 09:25:23 | hongweipeng | set | recipients:
+ hongweipeng, gvanrossum, ezyang, serhiy.storchaka, yselivanov, ralf.gommers, jonathan.slenders, mauvilsa, FFY00 |
2021-07-16 09:25:23 | hongweipeng | set | messageid: <1626427523.1.0.22619079792.issue40897@roundup.psfhosted.org> |
2021-07-16 09:25:23 | hongweipeng | link | issue40897 messages |
2021-07-16 09:25:22 | hongweipeng | create | |
|