Re: reverselist() from c?

Guido.van.Rossum@cwi.nl
Tue, 10 Jan 1995 21:43:47 +0100

> I need to be able to access the listreverse() in listobject.c
> function from a c module. I am already using sortlist() and assumed
> a similar entry point would be available to access reverselist(), but
> it is not.
>
> It would be a simple task to copy sortlist() to reverselist() and change
> the call to listsort() to a call to listreverse().

Be my guest!

> Is there some reason why this function was not made available to C
> programmers?

I've never needed it before... For completeness this should indeed be
there.

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>