Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79077

Re: TypeError: 'kwarg' is an invalid keyword argument for this function

From alex23 <wuwei23@gmail.com>
Newsgroups comp.lang.python
Subject Re: TypeError: 'kwarg' is an invalid keyword argument for this function
Date 2014-10-14 15:55 +1000
Organization A noiseless patient Spider
Message-ID <m1idru$d5h$1@dont-email.me> (permalink)
References <CAOoj+KAnZay7P8TPB06gn+f1ckAYbBp8yvr8TFxbD_5wQD94hA@mail.gmail.com> <CALwzidmbcXDVt1ObDEaMG31ueEAE-tc2mvRjnzCpEhN2sE3=BA@mail.gmail.com> <mailman.14817.1413194487.18130.python-list@python.org>

Show all headers | View raw


On 13/10/2014 8:04 PM, Dave Angel wrote:
> It would also help to spell it the same.  In the OP's
>   implementation,  he defined kwargs, and tried to use it as
>   kwarg.

That's perfectly okay, though: if `kwargs` is the name used to reference 
the dictionary of keyword arguments, `kwarg` would be an instance of a 
keyword argument.

Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: TypeError: 'kwarg' is an invalid keyword argument for this function Dave Angel <davea@davea.name> - 2014-10-13 06:04 -0400
  Re: TypeError: 'kwarg' is an invalid keyword argument for this function alex23 <wuwei23@gmail.com> - 2014-10-14 15:55 +1000

csiph-web