[IronPython] How to call a specific base class constructor?

Ruxo Zheng ruxomail-hello at yahoo.com
Wed Sep 20 21:38:40 CEST 2006


I'm customizing .NET ArrayList class like this:

from System.Collections import ArrayList

class MyArrayList(ArrayList):
    def __init__(self):
        ArrayList.__init__(self, 256)

test = MyArrayList()
test.Capacity  // return 0

It seems like default constructor is always called.   Did I incorrectly call the base class' constructor?


Rux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060920/2e0ed3d0/attachment.html>


More information about the Ironpython-users mailing list