Dieter Maurer wrote:
I strongly argue against it. Fix "hasattr" in the Zope context,
_marker = 
def hasattr(obj, attr, marker):
a = getattr(obj, attr, _marker)
return a is not _marker
__builtin__.hasattr = hasattr
Easy enough, isn't it?
Way easier than to change "hasattr" anywhere it is now used.
Anyone think putting this in Zope core is a good idea?
If so, where should it go?
Any potential performance implications people can think of?
Simplistix - Content Management, Zope & Python Consulting
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -