Thanks, That one's interesting, I'm actually a little surprised we don't see it 
anywhere in the test suite (it would seem any try/finally w/ a return should 
hit it, maybe those just aren't very frequent).  I've opened bug 872 for this.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo
Sent: Tuesday, July 11, 2006 2:46 AM
To: Discussion of IronPython
Subject: [IronPython] NPE inside IronPython.Compiler

Following code, reduced from MoinMoin.util.lock, causes NPE inside 
IronPython.Compiler.

MoinMoin (http://moinmoin.wikiwikiweb.de/) is a popular wiki engine written in 
Python.

# lock.py
class WriteLock:
    def acquire(self):
        try:
            result = self.lock.acquire()
        finally:
            if result:
                return result
            else:
                self.lock.release()

Seo Sanghyeon
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to