[IronPython] __init__ ignored in favor of base class constructor? - blocker

Dan Eloff dan.eloff at gmail.com
Mon Dec 1 12:21:33 PST 2008

On Mon, Dec 1, 2008 at 2:43 PM, Dino Viehland <dinov at microsoft.com> wrote:
> Ok, I think the problem here is two-fold.  First there's no public default constructor - only a private one.  So you need to pick between the Stream overload or the StreamResourceInfo, Uri overload.  You're apparently trying to choose the Stream overload.
> Which brings me to the 2nd problem.  Quite surprisingly GetResourceStream doesn't seem to return a stream - it returns a StreamResourceInfo.  So ultimately there are no applicable methods for us to call.

That's the second time that method has got me. They should have named
it GetResourceStreamInfo

But the problem still remains:

TypeError: default __new__ does not take parameters

Line 7: class MyTheme(Theme):
Line 8:     def __new__(cls):
Line 9:         return Theme.__new__(cls,
Line 10:
Line 11: def demo():

at __new__ in app.py, line 9
at demo in app.py, line 12
at app.py in app.py, line 21


More information about the Users mailing list