[IronPython] Another fatal bug when using global key word

Michael Tan fantasysoft at hotmail.com
Thu Jan 5 16:35:30 CET 2006

Dear all,
    I also encounter another problem in IP. Here is the codes:
    >>> i = 10
    >>> class test:
    ...     global i
    ...     def s(self):
    ...         return i
    These codes run OK in IP 0.96, but make the IronPythonConsole crash in 
IP 1.0. When I debug this fatal erro, I also find the factor is this line 
code in TryGetLocal method:
       if (dict != null) return dict.TryGetValue(name, out ret); 
    I really find that the Try* method isn't robot enough. 


More information about the Ironpython-users mailing list