Changes between Initial Version and Version 3 of Ticket #27971


Ignore:
Timestamp:
06/12/19 08:47:56 (2 years ago)
Author:
vklein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27971 – Description

    initial v3  
    44        s = str(inspect.formatargspec(*spec))
    55}}}
    6 The problem is that `inspect.formatargspec` is deprecated in Python 3.5, so it prints warning messages. From Sage's point of view, this is annoying, because there is no direct replacement (as far as I can tell) for `inspect.formatargspec`. The [https://docs.python.org/3/library/inspect.html#inspect.formatargspec documentation] says to use `signature` and `Signature`, but we have already obtained the signature information using `sage_getargspec` and just want to format it. Also, `inspect.signature` doesn't seem to work on Cython functions.
     6The problem is that `inspect.formatargspec` is deprecated in Python 3.5, so it prints warning messages. From Sage's point of view, this is annoying, because there is no direct replacement (as far as I can tell) for `inspect.formatargspec`. The [https://docs.python.org/3/library/inspect.html#inspect.formatargspec documentation] says to use `signature` and `Signature`, but we have already obtained the signature information using `sage_getargspec` and just want to format it. Also, `inspect.signature` doesn't seem to work on Cython functions (See cython [https://github.com/cython/cython/issues/1864 issue 1864]).
    77
    88#27578 is related, by the way.