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 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)")
History
Date User Action Args
2015-04-16 06:33:07pdmccormicksetrecipients: + pdmccormick, ncoghlan, larry, zach.ware, serhiy.storchaka, yselivanov
2015-04-16 06:33:07pdmccormicksetmessageid: <1429165987.69.0.798608730246.issue23967@psf.upfronthosting.co.za>
2015-04-16 06:33:07pdmccormicklinkissue23967 messages
2015-04-16 06:33:07pdmccormickcreate