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/2013-October/129326.html below:

[Python-Dev] PEP 457: Syntax For Positional-Only Parameters

[Python-Dev] PEP 457: Syntax For Positional-Only ParametersEthan Furman ethan at stoneleaf.us
Wed Oct 9 17:29:17 CEST 2013
On 10/09/2013 08:09 AM, Larry Hastings wrote:
> On 10/09/2013 04:45 PM, Anders J. Munch wrote:
>>
>> How about a naming convention instead, where using a leading
>> underscore in a parameter name is a hint that it is positional-only.
>>
>> For example, the docstring of sorted:
>>
>>     sorted(iterable, key=None, reverse=False) --> new sorted list
>>
>> would become:
>>
>>     sorted(_iterable, key=None, reverse=False) --> new sorted list
>
> In any case, boy am I -1 on this.  If you wish to continue this proposal further please write your own PEP.

A leading underscore indicates a private implementation detail.  The proposed signature now looks like we can provide a 
key and reverse, but only riskily provide the actual thing we want sorted.  No warm fuzzy feelings there!  ;)

-1

--
~Ethan~
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