[IronPython] System.MissingMemberException

Dino Viehland dinov at microsoft.com
Fri Jul 9 09:58:43 PDT 2010


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.




More information about the Users mailing list