2008/1/24, Sanghyeon Seo <[EMAIL PROTECTED]>:
> IronPython 2 reports: AttributeError: 'dictproxy' object has no attribute
> 'get'
> Note: works fine on IronPython 1.
Here is a simple and working fix.
https://fepy.svn.sourceforge.net/svnroot/fepy/trunk/patches/2.0a7/patch-dictproxy
--
Seo Sanghy
IronPython 2 reports: AttributeError: 'dictproxy' object has no attribute 'get'
Note: works fine on IronPython 1.
class Singleton(object):
def __new__(cls):
obj = Singleton.__dict__.get(cls.__name__)
if obj is None:
obj = object()
setattr(Singleton, cls.