Re: Why python doesn't use syntax like function(,,x) for default parameters?



Those default values are not 0 and <size-of-sequence>, you may have
only experience with situations where they behave as such but that
is not the same.

Well, it might be - but the conceptual behavior is (usually) the same.

If you need to know these values then you will need to know them
just as much when a keyword is used or when the default values
are used later. Calling

f(3) or f(arg5=3)

Will give you no more a clue about the missing default values
than calling

f(,,,,,3)

At least in the last call you are given a clue about missing
arguments.

I didn't argue against that - I don't like the proposal, but I'm pretty
sure that it won't be accepted in any way whatsoever so I don't bother.

I just wanted to point out that you proclaim false evidence for a similar
situation already being part of python, and that thus the f(,,1) syntax was
justified.

Diez
.



Relevant Pages

  • Re: Why python doesnt use syntax like function(,,x) for default parameters?
    ... Will give you no more a clue about the missing default values ... than calling ... I didn't claim that the fsyntax was justified. ...
    (comp.lang.python)
  • Re: Why python doesnt use syntax like function(,,x) for default parameters?
    ... Specifying the names of the keyword parameters costs you a little typing ... Will give you no more a clue about the missing default values ... than calling ...
    (comp.lang.python)
  • Re: topmost modal form
    ... I have a Master Form, calling different Slave Forms. ... missing values required for processing und want to act as a Master ... The Master Form itself checks now for the missing values required ...
    (microsoft.public.excel.programming)
  • Re: when will this shite stop
    ... You were missing nothing apart from that. ... Celtic supporters are some sort special case compared to Rangers fans. ... I thought you were above the name calling Jim, ...
    (uk.sport.football.clubs.rangers)
  • Guardian 24237 (Sat 17 Nov 2007).
    ... exactly the first king that springs to mind and b) by the standard ... it's missing the required last letter. ... ER is a hospital department. ... this seems a very thin clue. ...
    (rec.puzzles.crosswords)

Loading