Message285659
| 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:50 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, vstinner, larry, yselivanov |
| 2017年01月17日 15:34:50 | serhiy.storchaka | set | messageid: <1484667290.64.0.518377339265.issue29299@psf.upfronthosting.co.za> |
| 2017年01月17日 15:34:50 | serhiy.storchaka | link | issue29299 messages |
| 2017年01月17日 15:34:50 | serhiy.storchaka | create |
|