* in Python
placid
Bulkan at gmail.com
Fri Jun 23 08:17:26 EDT 2006
More information about the Python-list mailing list
Fri Jun 23 08:17:26 EDT 2006
- Previous message (by thread): * in Python
- Next message (by thread): * in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Duncan Booth wrote: > placid wrote: > > > Hi all, > > > > Can someone tell me what * in the following code means/does a Google > > search didnt turn up anything as i dont know what the * is called > > (related to Python and i dont think Python has pointers) > > > * is for variable number of positional arguments, ** is for variable > keyword arguments. The syntax is symmetrical when defining functions and > when calling them. > > See http://docs.python.org/ref/calls.html > and http://docs.python.org/ref/function.html so * basically means that args is a list containing more arguments that can change in size, whereas ** means that args is a dictionary of key=value arguments?
- Previous message (by thread): * in Python
- Next message (by thread): * in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list