tabular data

Fredrik Lundh effbot at telia.com
Sun Apr 9 15:28:29 EDT 2000


poupaerte at my-deja.com wrote:
> > def sortedby(list,*indices):
>
> I didn't know Python worked with pointers, or else what does *indices
> mean? The fine manuals do not explain the *var construct ...

of course they do:

    http://www.python.org/doc/current/ref/function.html

    If the form "*identifier'' is present, it is initialized to a tuple
    receiving any excess positional parameters, defaulting to
    the empty tuple. If the form "**identifier'' is present, it is
    initialized to a new dictionary receiving any excess key-
    word arguments, defaulting to a new empty dictionary."

</F>





More information about the Python-list mailing list