[Interface-dev] IronPython support
Seo Sanghyeon
sanxiyn at gmail.com
Tue Jun 16 09:39:55 EDT 2009
IronPython 2.6 Beta 1 now supports setting variables in the upper
scope by _getframe. With a following patch, "import zope.interface"
succeeds. Please apply...
For details about the patch, I refer to this python-dev discussion:
http://mail.python.org/pipermail/python-dev/2009-June/090040.html
--- src/zope/interface/declarations.py (revision 101080)
+++ src/zope/interface/declarations.py (working copy)
@@ -371,7 +371,7 @@
getattr(cls, '__class__', type(cls)),
)
- except TypeError:
+ except (AttributeError, TypeError):
if not isinstance(cls, type):
raise TypeError("ImplementedBy called for non-type", cls)
BuiltinImplementationSpecifications[cls] = spec
--
Seo Sanghyeon
More information about the Interface-dev
mailing list