[Python-Dev] PyList API missing PyList_Pop() and PyList_Delete

Michael Hudson mwh at python.net
Mon Oct 27 07:45:31 EST 2003


"Raymond Hettinger" <python at rcn.com> writes:

>>     PyList_SetSlice(lst, n-1, n, NULL);
>
> There's the new piece of information.  I didn't know that the final
> argument could be NULL and creating/destroying and empty list for the
> arg was unpleasant.  I'll add that info to the API docs.

"del<wotsit> thing" is punned into "set<wotsit> thing NULL" at a
pretty low level, and fairly consistently (hope that made sense...).

Cheers,
mwh

-- 
  MAN:  How can I tell that the past isn't a fiction designed to
        account for the discrepancy between my immediate physical
        sensations and my state of mind?
                   -- The Hitch-Hikers Guide to the Galaxy, Episode 12



More information about the Python-Dev mailing list