This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][2/5] Event and event registry


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]