Help? :) "TypeError: foo() got multiple values for keyword argument 'omicron'

Stephen Hansen news at myNOSPAM.org
Tue May 1 05:27:05 EDT 2001


Oh *gah*! That's too obvious, I'm an idiot. Forgive me. :) *hangs head in
shame* I forgot that bit when I enshrouded it in a class. le sigh. :)

--S
"Fredrik Lundh" <fredrik at pythonware.com> wrote in message
news:mdvH6.11379$4N4.2415769 at newsc.telia.net...
> Stephen Hansen wrote:
> > class Test:
> >     def foo(alpha, beta, omicron=None, omega=[1, 2, 3]):
>
> "foo" is a method, so that should be:
>
>     def foo(self, alpha, beta, omicron=None, omega=[1, 2, 3]):
>
> Cheers /F
>
>





More information about the Python-list mailing list