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/2006-May/064929.html below:

[Python-Dev] PEP 3102: Keyword-only arguments

[Python-Dev] PEP 3102: Keyword-only arguments [Python-Dev] PEP 3102: Keyword-only argumentsSteven Bethard steven.bethard at gmail.com
Sun May 7 20:25:07 CEST 2006
On 5/7/06, BJörn Lindqvist <bjourne at gmail.com> wrote:
> I do know enough about Python to know that the make_person function is
> a really bad example.

Totally agreed.  I've been ignoring most of that discussion because it
seemed really irrelevant.

> would be nice to instead see some real examples of the usefulness of
> the required keyword-only arguments.

The most obvious one to me is the optparse module, where add_option
takes all kinds of different keyword arguments, and there's really no
intention of these ever being specified as positional arguments:
    http://docs.python.org/lib/module-optparse.html


STeVe
--
Grammar am for people who can't think for myself.
        --- Bucky Katt, Get Fuzzy
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