[IronPython] stack overflow issue

Benjamin West bewest at gmail.com
Tue Jun 19 22:58:41 CEST 2007


http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=6014

Anyone have guidelines on avoiding this kind of thing, or if there is
a fix that will make this a non-issue?

-Ben

codeplex butchers the white space:

import clr
clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import *

class DefaultForm(Form):
  def __init__(self, *args, **kwds):
    super(type(self), self).__init__(*args, **kwds)
    self.test = "Default Stuff"

class AppForm(DefaultForm):
  def __init__(self, *args, **kwds):
    super(type(self), self).__init__(*args, **kwds)
    self.test = "real Stuff"

if __name__ == '__main__':
  # does not cause stack overflow
  #f = DefaultForm()

  # causes stack overflow.
  f = AppForm()
  Application.Run(f)



More information about the Ironpython-users mailing list