[Zodb-checkins] CVS: Packages/ZEO/zrpc -
connection.py:1.49.4.5.2.1
Jeremy Hylton
jhylton at gmail.com
Sun May 29 15:36:32 EDT 2005
On 5/28/05, Tres Seaver <tseaver at palladion.com> wrote:
> - Removed all uses of the 'hasattr' builtin from the core, where
> the object being tested derives (or might) from Persistent.
> XXX: currently, this branch imports a 'safe_hasattr' from ZODB.utils,
> which adds a dependency on ZODB for some packages; we probably
> need a better location, and perhas a C implementation?
It's about time :-).
I don't think you need a C implementation of the safe hasattr(), since
it's just a getattr() call. There's not really any overhead to the
Python version beyond a single Python function call.
Jeremy
More information about the Zodb-checkins
mailing list