Question about Py C API implementation.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adonis

    #1

    Question about Py C API implementation.

    I wrote a small script to flatten a list of lists without the need
    of recursion, it works fine for the most part, but was wanting to
    reimplement it in C just for kicks, and would give me and excuse to
    learn the Python C API, but the C implementation does not function
    properly, I *think* it might be how I am trying to copy a sub list that
    is found to a list object for seperate processing (line 22, flatten.c),
    but also could be where I am trying to pop the topmost from the list
    (line 35, flatten.c), but it has me stooped, I lack in C skills so not
    many things may be apparent to me immediately, any help is greatly
    appreciated.

    Adonis



Working...