Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #67028

Re: [Baypiggies] Class decorator to capture the creation and deletion of objects

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.04; 'resulting': 0.04; 'cc:addr:python-list': 0.11; 'wrote': 0.14; '__del__': 0.16; 'called.': 0.16; 'chris,': 0.16; 'deleted;': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pulling': 0.16; 'subject: \n ': 0.16; 'subject:Baypiggies': 0.16; 'wrote:': 0.18; 'alex': 0.19; 'subject:] ': 0.20; 'feb': 0.22; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'entries': 0.24; 'header': 0.24; 'cc:2**0': 0.24; 'query': 0.26; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; "we'd": 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; '25,': 0.31; 'steven': 0.31; 'yes.': 0.31; 'table': 0.34; 'subject:the': 0.34; "can't": 0.35; 'knows': 0.35; 'received:google.com': 0.35; '(we': 0.36; 'thanks': 0.36; 'should': 0.36; 'being': 0.38; 'pm,': 0.38; 'sure': 0.39; 'more': 0.64; '4:26': 0.84; 'fortunately': 0.84; 'subject:Class': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=wXG4g37NVRFVzO9uV8m945r7mHXr9Ktx8jILcBtoWtU=; b=B/hgHk+MHIbmehFdf+8JeYSWpZW6xypor5ywECXPpKCzatRwYlQNXkOYOvjfK+I98G Jk8Tb6OGcPb5FWPHpr2w83cBg44OnWAiyAUEWP2LRmsaw7yP1L7mN5pUkpHXo+pp2+Ck 7AZSFxxQt8l7W45Ba36mz6K0WgFsoLPazjkiWJdIslyNX+rrDgVUxNLoa3Bcv09DZPJS R/gpsFhVecMOMnkC4i5qm5uKYMpmVUa78vtje5Nq8Hox0JqmOXOQQ1S92RNRSX8+c0Nq R1/b4uma2eh4Ly6FStTrbKOpwjdd+N37NAgWmZ/gcbI4jClNh53OfZGZZHYQIgPJ5V9e s0yQ==
MIME-Version 1.0
X-Received by 10.68.201.10 with SMTP id jw10mr4558321pbc.25.1393310040817; Mon, 24 Feb 2014 22:34:00 -0800 (PST)
In-Reply-To <leh9ij$4aa$2@dont-email.me>
References <CAPbKEUp_OS_PukUz2KObOSLQzjwGehPOfG4C-3Gq9qq=RaASgQ@mail.gmail.com> <CAE46Be9Ght7zj3rk=40=fKNmASq_1ER96Xp4PaPXLuiyMmbD1A@mail.gmail.com> <mailman.7337.1393295699.18130.python-list@python.org> <leh9ij$4aa$2@dont-email.me>
Date Tue, 25 Feb 2014 17:34:00 +1100
Subject Re: [Baypiggies] Class decorator to capture the creation and deletion of objects
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.7344.1393310044.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1393310044 news.xs4all.nl 2969 [2001:888:2000:d::a6]:53063
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:67028

Show key headers only | View raw


On Tue, Feb 25, 2014 at 4:26 PM, alex23 <wuwei23@gmail.com> wrote:
> On 25/02/2014 12:34 PM, Chris Angelico wrote:
>>
>> On Tue, Feb 25, 2014 at 1:24 PM, Alex Martelli <aleax@google.com> wrote:
>>>
>>> At this point, all entries in the table should be deleted; query should
>>> return an empty list!
>>
>>
>> You can't actually depend on del resulting in __del__ being called.
>
>
> Mind those attributions, Chris, it was actually Sangeeth Saravanaraj who
> wrote what you quoted. I'm preeeeetty sure Alex knows all about __del__ :)

Whoops, yes. I deleted a header by mistake. Sorry Alex! And thanks
Alex for pulling me up on it. (We have a few of those situations.
Fortunately we have Steven and Stephen, otherwise we'd have a lot more
of it.)

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [Baypiggies] Class decorator to capture the creation and deletion of objects Chris Angelico <rosuav@gmail.com> - 2014-02-25 13:34 +1100
  Re: [Baypiggies] Class decorator to capture the creation and deletion of objects alex23 <wuwei23@gmail.com> - 2014-02-25 15:26 +1000
    Re: [Baypiggies] Class decorator to capture the creation and deletion of objects Chris Angelico <rosuav@gmail.com> - 2014-02-25 17:34 +1100

csiph-web