Marcin wrote:
> Hello everyone,
> 
> 
> Ok I found the cause, the __init__ filled in from the template is
> exactly one space to the left from where it should be:
> 
> class MyForm(Form):
>      def __init__(self):
> ...
>       def func(self, x):
>           return x
> 
> If I shift "def __init__.." one space to the right, everything works.
> 
> But why I got such a strange exception?
> 
> And isn't there some sort of tab nanny or "inconsistent layout" exception?

We do have an option to report inconsistent tabs/spaces...  We just need to
enable it in the parser and setup an option to disable it.  I believe it's
somewhere on the TODO list.


_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to