Message241204
| Author |
pdmccormick |
| Recipients |
larry, ncoghlan, pdmccormick, serhiy.storchaka, yselivanov, zach.ware |
| Date |
2015年04月16日.06:33:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1429165987.69.0.798608730246.issue23967@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This definitely works for the _socket.listen use case!
In terms of generating such a signature using Argument Clinic, currently this is required:
backlog: int(py_default="builtins.min(SOMAXCONN, 128)", c_default="Py_MIN(SOMAXCONN, 128)") = 000
The attached patch lets Tools/clinic/clinic.py make an exception when both C and Python defaults are specified, simplifying the above to:
backlog: int(py_default="builtins.min(SOMAXCONN, 128)", c_default="Py_MIN(SOMAXCONN, 128)") |
|