[IronPython] can't inherit??
curt at hagenlocher.org
Tue Apr 28 08:18:17 PDT 2009
One immediately apparent problem is that the strategy for formatting the
code that initializes attributes is completely broken for Python -- you need
to know how far to indent each of the lines in the code and not just the
On Mon, Apr 27, 2009 at 11:24 AM, Ivan Porto Carrero <ivan at flanders.co.nz>wrote:
> it's a bad subject but I didn't know how else to call it.
> For the DynamicScriptControl somebody submitted an ironpython
> implementation in February but I only just now got round to adding it.
> And I have problems :)
> The link below has the line that fails for IronPython but works for
> So the idea is that you read a script file containing a wpf/silverlight
> control. Because you cannot have DLR controls in WPF atm there is this
> dynamic script control to allow you to have DLR controls participate in
> So what happens in IronRuby is the following.
> The script converter generates a script that will set the properties and
> create an instance of the control. This control is then put into the XAML
> object graph.
> The script that is generated actually monkey patches the initialize method
> of the the control class to populate the control properties.
> The implementation that has been provided to me actually inherits of the
> first control to override the constructor and to do the proper
> initializations, only it doesn't work.
> it tells me that it cannot find the parent class I get an
> UnboundNameException and AFAICT I shouldn't get that.
> I'm using the latest nightly builds.
> The ruby implementation of the control
> the python implementation
> The ruby code formatter (for monkey patching the control):
> The python code formatter:
> I'm pretty sure this is a 5 second fix for somebody that knows what they're
> doing with IronPython, so help help ... ;)
> Met vriendelijke groeten - Best regards - Salutations
> Ivan Porto Carrero
> GSM: +32.486.787.582
> Blog: http://flanders.co.nz
> Twitter: http://twitter.com/casualjim
> Author of IronRuby in Action (http://manning.com/carrero)
> Steven Wright<http://www.brainyquote.com/quotes/authors/s/steven_wright.html> - "A lot of people are afraid of heights. Not me, I'm afraid of widths."
> Users mailing list
> Users at lists.ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users