This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients niconoe, vstinner, xtreak, yselivanov
Date 2018-07-16.08:53:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531731212.96.0.56676864532.issue33911@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.7 is affected as well:

vstinner@apu$ ./python -Werror -m test test_docxmlrpc
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 46636)
Traceback (most recent call last):
  (...)
  File "/home/vstinner/prog/python/3.7/Lib/xmlrpc/server.py", line 828, in docserver
    contents.append(self.docroutine(value, key, funcs=fdict))
  File "/home/vstinner/prog/python/3.7/Lib/xmlrpc/server.py", line 791, in docroutine
    formatvalue=self.formatvalue)
  File "/home/vstinner/prog/python/3.7/Lib/inspect.py", line 1225, in formatargspec
    stacklevel=2)
DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
----------------------------------------
Warning -- threading._dangling was modified by test_docxmlrpc
  Before: <_weakrefset.WeakSet object at 0x7fc84da8f810>
  After:  <_weakrefset.WeakSet object at 0x7fc84da8f538> 
test test_docxmlrpc failed -- multiple errors occurred; run in verbose mode for details
test_docxmlrpc failed


I generated PR 8294 backport to fix Python 3.7 as well. Since the HTML output is unchanged, IMHO it's safe to backport the change.

In the documentation, inspect.formatargspec() is also deprecated in Python 3.6, but the code doesn't emit a DeprecationWarning. I don't think that it's worth it to backport the change to Python 3.6.
History
Date User Action Args
2018-07-16 08:53:32vstinnersetrecipients: + vstinner, yselivanov, xtreak, niconoe
2018-07-16 08:53:32vstinnersetmessageid: <1531731212.96.0.56676864532.issue33911@psf.upfronthosting.co.za>
2018-07-16 08:53:32vstinnerlinkissue33911 messages
2018-07-16 08:53:32vstinnercreate