Re: [Zope-dev] Understanding LeakFinder-0.1.1

2005-01-12 Thread Shane Hathaway
On Wednesday 12 January 2005 12:15 pm, Rodrigo Dias Arruda Senra wrote: > Inside the redefined::open(), the lock is acquired and > released before delegating to the original::open(). > I wonder if: > > 1) That was done intentionally as a _step_on_the_break_ measure > 2) acquire() or release() caus

Re: [Zope-dev] Understanding LeakFinder-0.1.1

2005-01-12 Thread Tim Peters
[Rodrigo Dias Arruda Senra] > reading LeakFinder's code (version 0.1.1) I was puzzled by: > > """ > if not hasattr(DB, '_lf_real_open'): > # Patch DB with a way to block open operations. > DB._open_lock = allocate_lock() > def open(self, *args, **kw): > self._open_lock.acquire(