noob question: "TypeError" wrong number of args

Edward Elliott nobody at 127.0.0.1
Thu May 4 14:29:59 EDT 2006


bruno at modulix wrote:
> Edward Elliott wrote:
>> Ah, well then, there's no need for a full-blown parser.  It should
>> suffice to recognize a class definition and modify the parameter list of
>> every def indented one level further than that.
> 
> won't do :
> 
> class CounterExample(object):
>   if compute_some_const_according_to_phase_of_moon():
>     def meth(...):
>       do_something(self, 42)

Uuuhhhhnn, you got me pardner.  (cough, cough) my hands, they're so cold. 
bruno?  where'd you go, bruno?  i can't see you anymore.  are we back on
the farm?  tell ma i love her.  (clunk)




More information about the Python-list mailing list