On 01/15/2014 10:21 PM, Georg Brandl wrote: > Am 16.01.2014 05:35, schrieb Ryan Smith-Roberts: >> On Wed, Jan 15, 2014 at 7:57 PM, Ryan Smith-Roberts <rmsr at lab.net >> <mailto:rmsr at lab.net>> wrote: >> >> socket.getservbyname(servicename[, protocolname]) >> -> >> socket.getservbyname(servicename, protocolname=None) >> >> >> Here is a more complicated example, since the above does technically have an >> alternative fix: >> >> sockobj.sendmsg(buffers[, ancdata[, flags[, address]]]) >> -> >> sockobj.sendmsg(buffers, ancdata=None, flags=0, address=None) > As far as I understand you should convert these with the "optional group" syntax > (i.e. brackets). That's correct. Functions that use PyArg_ParseTuple should continue to use PyArg_ParseTuple. Ryan: add a "/" on a line by itself after the last parameter of each of these functions, and that will let you use the [ ] syntax too. Please see the Argument Clinic howto for more. //arry/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140115/dbccec1c/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4