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 serhiy.storchaka
Recipients larry, rhettinger, serhiy.storchaka, vstinner, yselivanov
Date 2017-01-17.15:34:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484667290.64.0.518377339265.issue29299@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is that

  func(mandatory_arg1, mandatory_arg2[, optional_arg3[, optinal_arg4]])

is not compatible with the inspect module.

In many case a meaningful default value was added if this is possible. For example the Python default shown in the signature can be set to '', 'utf-8' or 'strict' while the C default value is NULL for performance. If the parameter is upper index in the sequence it can be set to sys.maxsize (Py_SSIZE_T_MAX in C).

This is not always possible. For example there is not default value for dict.pop().
History
Date User Action Args
2017-01-17 15:34:50serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, larry, yselivanov
2017-01-17 15:34:50serhiy.storchakasetmessageid: <1484667290.64.0.518377339265.issue29299@psf.upfronthosting.co.za>
2017-01-17 15:34:50serhiy.storchakalinkissue29299 messages
2017-01-17 15:34:50serhiy.storchakacreate