A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-March/138849.html below:

[Python-Dev] How to document functions with optional positional parameters?

[Python-Dev] How to document functions with optional positional parameters? [Python-Dev] How to document functions with optional positional parameters?Victor Stinner victor.stinner at gmail.com
Sat Mar 21 12:03:02 CET 2015
Le samedi 21 mars 2015, Serhiy Storchaka <storchaka at gmail.com> a écrit :


>
> For example binascii.crc32(). It has two positional parameters, one is
mandatory, and one is optional with default value 0. With Argument Clinic
its signature is crc32(data, crc=0, /).

 The \ is useful, it indicates that you cannot use keywords. If you want to
drop \, modify the function to accept keywords.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150321/4a8df146/attachment.html>
More information about the Python-Dev mailing list

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