[Python-ideas] parameter omit

Josiah Carlson jcarlson at uci.edu
Fri May 11 04:35:58 CEST 2007


"Aaron Brady" <castironpi at comcast.net> wrote:
> Library functions have many parameters, and huge if statements are hard to
> read.  My solution costs only a single built-in object, not even a keyword
> or syntax modification.  Your solution takes a three-line function
> definition.  Compare to mine:
> 
>      def foo(arg1, argFoo=1.2325, argBree='hello'):
>          ...
> 
> Specific and concise.  Clearly better, by all measures I read.

Except that it has no support from anyone with any pull.  Feel free to
wait for it, and/or keep pestering people to offer their opinions.

Note that not everyone has the desire for such (arguably unnecessary)
consistency as you seem to.


 - Josiah




More information about the Python-ideas mailing list