PyList_Append requires explicit Py_INCREF after?

Discussion in 'Python' started by seberino@spawar.navy.mil, Jul 5, 2006.

  1. Guest

    PyList_Append requires explicit Py_INCREF after?

    (I didn't see in docs where it said if appends a new reference
    or a borrowed reference like other APIs.)

    thanks!

    Chris
    , Jul 5, 2006
    #1
    1. Advertising

  2. wrote:

    > PyList_Append requires explicit Py_INCREF after?
    >
    > (I didn't see in docs where it said if appends a new reference
    > or a borrowed reference like other APIs.)


    if successful, PyList_Append(seq, item) increments the reference count
    for item.

    </F>
    Fredrik Lundh, Jul 5, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. xxx
    Replies:
    0
    Views:
    824
  2. Replies:
    2
    Views:
    1,553
    K.S.Sreeram
    Jun 17, 2006
  3. Hakirato
    Replies:
    4
    Views:
    875
    Alf P. Steinbach
    Oct 5, 2006
  4. Kevin D. Smith

    Py_DECREF/Py_INCREF as Functions?

    Kevin D. Smith, Mar 31, 2007, in forum: Python
    Replies:
    1
    Views:
    328
    Gabriel Genellina
    Mar 31, 2007
  5. Ervin Hegedüs

    Py_INCREF() incomprehension

    Ervin Hegedüs, Apr 26, 2011, in forum: Python
    Replies:
    13
    Views:
    668
    Stefan Behnel
    May 2, 2011
Loading...

Share This Page