[IronPython] NPE inside IronPython.Compiler
Dino Viehland
dinov at exchange.microsoft.com
Tue Jul 11 17:26:57 CEST 2006
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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] 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
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list