➜

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.

作者 serhiy.storchaka
收信人 larry, rhettinger, serhiy.storchaka, vstinner, yselivanov
日期 2017-01-17.15:34:50
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1484667290.64.0.518377339265.issue29299@psf.upfronthosting.co.za>
In-reply-to
内容
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().
历史
日期 用户 动作 参数
2017-01-17 15:34:50serhiy.storchaka修改recipients: + serhiy.storchaka, rhettinger, vstinner, larry, yselivanov
2017-01-17 15:34:50serhiy.storchaka修改messageid: <1484667290.64.0.518377339265.issue29299@psf.upfronthosting.co.za>
2017-01-17 15:34:50serhiy.storchaka链接issue29299 messages
2017-01-17 15:34:50serhiy.storchaka创建