[IronPython] IronPython and COM object useage

2009-03-16 Thread Wim De Kimpe
Hi all Not sure if this is the right forum, but I ask my question anyway. I would like to use IronPython for creating a hardware testing environment, consisting of a Device Under Test and some measurement equipment like a lab power supply and voltage meter and things like that. These

Re: [IronPython] IPy embedding problem

2009-03-16 Thread Igor Elyas
Bug added to DLR project. From: Curt Hagenlocher Sent: Sunday, March 15, 2009 11:50 PM To: Discussion of IronPython Subject: Re: [IronPython] IPy embedding problem Can you please open a bug for this on the DLR site (http://www.codeplex.com/dlr)? There's a few methods that basically have

Re: [IronPython] Revisiting interfaces and COM

2009-03-16 Thread Dino Viehland
The resolution of that bug was that we now expose explicitly implemented interfaces automatically if there are no naming conflicts. But with COM it's usually a different story - the members should always just be there. Do the interop libraries use explicit interface implementation (if they

Re: [IronPython] [2.6] Byte literals and with statements in nightlies?

2009-03-16 Thread Jeff Hardy
That did the trick. Thanks! - Jeff On Sun, Mar 15, 2009 at 3:15 PM, Curt Hagenlocher c...@hagenlocher.org wrote: You probably need to run with -X:Python26 (for now). On Sun, Mar 15, 2009 at 1:34 PM, Jeff Hardy jdha...@gmail.com wrote: Hi, Both byte literals (#19544) and the with statement

[IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Jeff Hardy
Hi, Is there any quick workaround for #21569? It's causing about a third of the Genshi errors I'm hitting. Trying to override __init__ in the subclass gives the same error. class Foo(unicode): def __init__(self, val): pass f = Foo(1) Traceback (most recent call last): File foo.py,

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Michael Foord
Jeff Hardy wrote: Hi, Is there any quick workaround for #21569? It's causing about a third of the Genshi errors I'm hitting. Trying to override __init__ in the subclass gives the same error. class Foo(unicode): def __init__(self, val): pass f = Foo(1) Traceback (most recent call

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Dino Viehland
Does this make it work? class x(unicode): def __init__(self, val): pass def __new__(cls, val): return unicode.__new__(cls, unicode(val)) x(1) I've voted for the bug and raised the priority to medium. I've left it proposed until we triage it as a team (we triage bugs every

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Dino Viehland
It works on CPython 2.6 at least. You should only have to override __new__ if you wanted to support different arguments than str/unicode.__new__ supports. -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Michael

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-16 Thread Michael Foord
Dino Viehland wrote: It works on CPython 2.6 at least. You should only have to override __new__ if you wanted to support different arguments than str/unicode.__new__ supports. Of course. D'oh - it was late, and is now even later. :-) Michael -Original Message- From: