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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From alex23 <wuwei23@gmail.com>
Newsgroups comp.lang.python
Subject Re: TypeError: 'kwarg' is an invalid keyword argument for this function
Date Tue, 14 Oct 2014 15:55:11 +1000
Organization A noiseless patient Spider
Lines 9
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>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Tue, 14 Oct 2014 05:55:10 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="f141bde4d1e4edae3516bb9f1d8e176c"; logging-data="13489"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aV88zuI5TfD81ACpwwuks"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <mailman.14817.1413194487.18130.python-list@python.org>
Cancel-Lock sha1:R4UsAlKkNHGbyqTiPUDI3oj+VNc=
Xref csiph.com comp.lang.python:79077

Show key headers only | 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