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)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to