On 08/07/2010 19:03, Marcin Krol wrote:
Hello everyone,

When I try to add attributes to self in a method outside __init__, I'm getting MissingMemberException. Do I have to add everything to __slots__ and __init__() ?

I'm not saying it's not worth having smth like this to get Python plug into CLR, but this is kinda weird.

In addition, IronPython Studio crashed when I tried to get an online explanation from the exception window.

Don't use IronPython Studio - it is *very* unstable and uses IronPython 1 which is years out of date.

Use IronPython Tools for Visual Studio 2010:

http://ironpython.net/ironpython/tools/

Basically you shouldn't use __slots__ because it causes problems like this... I think IronPython Studio creates classes with __slots__ when you use the windows forms designer. IronPython Tools doesn't have a winforms designer because it isn't really possible without horrible hacks. I recommend using the Visual Studio C# designer and then subclass the classes it generates from IronPython.

Michael

--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog

READ CAREFULLY. By accepting and reading this email you agree, on behalf of 
your employer, to release me from all obligations and waivers arising from any 
and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, 
clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and 
acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your 
employer, its partners, licensors, agents and assigns, in perpetuity, without 
prejudice to my ongoing rights and privileges. You further represent that you 
have the authority to release me from any BOGUS AGREEMENTS on behalf of your 
employer.


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

Reply via email to