Python's simplicity philosophy
Paul Rubin
http
Thu Nov 20 12:01:27 EST 2003
"Terry Reedy" <tjreedy at udel.edu> writes:
> > Sorry, yeah, Lisp jargon. A cons cell is a pair but "consing" has a
> > more generalized informal meaning of allocating any kind of storage on
> > the heap, which will have probably to be garbage collected later.
> > Consing up an object means building it up dynamically.
>
> This 'generalized informal' meaning is new to me also ;-).
See also: http://catb.org/~esr/jargon/html/C/cons.html
> > So it just scans through the list once and then does a single del
> > operation.
>
> I believe this requires list to be sorted,
Yes, by intention. The discussion topic was removing duplicates from
a sorted list. I should have been a little more explicit though.
More information about the Python-list
mailing list