On Fri, May 27, 2005 at 08:53:54AM +0100, Chris Withers wrote:
> 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?
fwiw, tonight I ran some quick request-per-second tests
(using ab -n 100 -c 10) on a
Dieter Maurer wrote:
I strongly argue against it. Fix "hasattr" in the Zope context,
instead!
_marker = []
def hasattr(obj, attr, marker):
a = getattr(obj, attr, _marker)
return a is not _marker
import __builtin__
__builtin__.hasattr = hasattr
Easy