public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Richard Ward <richard.j.ward1@googlemail.com>
Cc: archer@sourceware.org
Subject: Re: [RFC][2/5] Event and event registry
Date: Fri, 25 Sep 2009 18:37:00 -0000	[thread overview]
Message-ID: <m3skeayipd.fsf@fleche.redhat.com> (raw)
In-Reply-To: <4ABAAF04.4020608@googlemail.com> (Richard Ward's message of "Thu, 24 Sep 2009 00:28:04 +0100")

>>>>> "Richard" == Richard Ward <richard.j.ward1@googlemail.com> writes:

Tom> I always forget whether the list APIs incref themselves, or not.

Richard> As a general rule, The list/dict/tupe functions do their own
Richard> incrementing (so the Py_INCREF above is not needed).

Thanks.

Richard> FWIW there seem to be a fair few places in gdb where Py_INCREF is used
Richard> over-zealously. Sometimes this is just extra increments to python's
Richard> None, True and False values, which I suppose won't cause any leaks,
Richard> but there are a few places that will.

If you know of ones offhand, let me know and I will fix them.

Tom

  reply	other threads:[~2009-09-25 18:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-23 15:35 Oguz Kayral
2009-09-21 21:55 ` Tom Tromey
2009-09-23 23:28   ` Richard Ward
2009-09-25 18:37     ` Tom Tromey [this message]
2010-02-05 11:12   ` Oguz Kayral
2010-02-05 11:31     ` [Archer] " Joel Brobecker
2010-02-10 22:45     ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3skeayipd.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=archer@sourceware.org \
    --cc=richard.j.ward1@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).