[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread SilentGhost
Change by SilentGhost : -- superseder: -> Argument Clinic: Fix signature of optional positional-only arguments type: -> behavior ___ Python tracker ___ _

[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Yes you are right, this is actually the same issue. I will try to look for the other attempts Serhiy Storchaka talks about in issue 29299 and ping Larry on this issue. (I can't set the superseeded flag on this issue thought) -- resolution: -> duplicat

[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread SilentGhost
SilentGhost added the comment: In fact, I don't see anything warranting a separate issue. I'd suggest to close this and perhaps ping Larry instead on the issue 29299 which you mentioned. -- ___ Python tracker _

[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread SilentGhost
SilentGhost added the comment: It's the only function with an optional argument in math, on 3.7 all such function result in ValueError, e.g. getattr, iter, max. -- nosy: +SilentGhost ___ Python tracker

[issue36306] inspect.signature(math.log) raises ValueError

2019-03-15 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : >>> import math, inspect >>> inspect.signature(math.log) Traceback (most recent call last): File "", line 1, in File "/Users/remi/src/cpython/Lib/inspect.py", line 3081, in signature return Signature.from_callable(obj, follow_wrapped=follow_wrapped) F