A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-May/064795.html below:

[Python-Dev] Positional-only Arguments

[Python-Dev] Positional-only Arguments [Python-Dev] Positional-only ArgumentsTerry Reedy tjreedy at udel.edu
Tue May 2 21:46:56 CEST 2006
"Benji York" <benji at zope.com> wrote in message 
news:4457983C.5080109 at zope.com...
> I've not followed the PEP 3102 (keyword-only arguments) discussion
> closely enough to know if this has been mentioned, but we were
> discussing a need at work today for the ability to enforce position-only
> arguments.

You could discourage name use by not documenting the actual, internal name 
of the parameters.  Something like

def weather_guess(temp, pres):
   '''Guess weather from temperature in degrees Kelvin and pressure
      in millibars passed by position in that order.'''

Terry Jan Reedy



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