question: parameters for create_polygon() method

Greg Ewing greg at cosc.canterbury.ac.nz
Wed May 5 21:38:51 EDT 2004


Peter Finlayson wrote:
> Andrew Bennetts wrote:
>  > Odd, though -- I thought that calls that put non-keyword args after
>  > keyword args were a syntax error
> 
> I thing that is because the standard form for the calls are:
> def mydef(arg1, arg2, *args, **keywords)
> ie with the arbitrary argument lists after the formal args.

Yes. Syntactically, the * args don't count
as positional args; they're in a category of
their own.

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