method (a, b = '', *c, **d): gets a syntax error?

Alex Martelli aleax at aleax.it
Fri Aug 29 10:49:32 EDT 2003


Andreas Neudecker wrote:

> Hello.
> 
> I am relatively new to Python and I have a strange problem with some
> code. In a class the __call__ method gets parameters like this:
> 
> 
> class WhatsUp:
>      __call__ (

You're missing the keyword 'def' here, right before the method name.


Alex





More information about the Python-list mailing list