Message283370
| Author |
serhiy.storchaka |
| Recipients |
docs@python, serhiy.storchaka, vstinner |
| Date |
2016年12月16日.07:21:19 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1481872879.84.0.0114129819879.issue28977@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
"O" is not the only special case. "S" and "N" unpack a tuple argument too. "O&" converter should return a tuple, otherwise it is an error. All other format codes are illegal for single argument.
I would just deprecate this feature (in PyObject_CallFunction, not in Py_BuildValue). The behavior of PyObject_CallFunction with a single argument can be made more consistent and useful. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年12月16日 07:21:19 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, docs@python |
| 2016年12月16日 07:21:19 | serhiy.storchaka | set | messageid: <1481872879.84.0.0114129819879.issue28977@psf.upfronthosting.co.za> |
| 2016年12月16日 07:21:19 | serhiy.storchaka | link | issue28977 messages |
| 2016年12月16日 07:21:19 | serhiy.storchaka | create |
|