[Python-Dev] PyList API missing PyList_Pop() and PyList_Delete
Michael Hudson
mwh at python.net
Mon Oct 27 07:45:31 EST 2003
More information about the Python-Dev mailing list
Mon Oct 27 07:45:31 EST 2003
- Previous message: [Python-Dev] PyList API missing PyList_Pop() and PyList_Delete
- Next message: [Python-Dev] Re: closure semantics
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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
- Previous message: [Python-Dev] PyList API missing PyList_Pop() and PyList_Delete
- Next message: [Python-Dev] Re: closure semantics
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list