Web Images Videos Maps News Groups Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion *args and **kwargs

View parsed - Show only message text

Path: g2news1.google.com!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail
From:  JonathanB <doulo...@gmail.com>
Newsgroups: comp.lang.python
Subject: *args and **kwargs
Date: Tue, 05 Jun 2007 05:27:58 -0700
Organization: http://groups.google.com
Lines: 12
Message-ID: <1181046478.824231.117300@q75g2000hsh.googlegroups.com>
NNTP-Posting-Host: 64.234.9.51
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1181046479 3507 127.0.0.1 (5 Jun 2007 12:27:59 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 5 Jun 2007 12:27:59 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: q75g2000hsh.googlegroups.com; posting-host=64.234.9.51;
   posting-account=LcDDgg0AAACkD0Xvsqcs9kSg_e4VXJ1E

Ok, this is probably definitely a newbie question, but I have looked
all over the Python library reference material and tutorials which I
can find online and I cannot find a clear definition of what these are
and more importantly how to use them. From what I can tell from their
use in the examples I've seen, they are for passing a variable number
of arguments to a function (which I need to do in a program I am
working on). But how do you use them? Is there a fixed order in which
the arguments within *arg or **kwarg should be passed or will be
called within a function? I realize this probably involves a long-
winded answer to a very simple and common programming problem, so if
someone has a link to TFM, I'll gladly go RTFM. I just can't find it.


Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google