Adding item in front of a list

Greg Ewing (using news.cis.dfn.de) ckea25d02 at sneakemail.com
Mon Apr 14 22:32:34 EDT 2003


Ben Hutchings wrote:
> 3. The non-keyword arguments are assigned to the first (m - n) unmatched
>    optional parameters, and the n unassigned required parameters, in
>    order of parameter declaration.

Oh, man! I had to do some serious thinking to get my
brain around that.

> Then range would be range(start=0, stop, step=1).  But having existing
> arguments match different parameters when you add arguments to the end
> of the list could be confusing.

Well, it wouldn't be any more confusing than what
range() already does.

Having optional parameters in the *middle* of the
list would be interesting, however...

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list