Why is Python popular, while Lisp and Scheme aren't?

holger krekel pyth at devel.trillke.net
Sun Nov 24 17:39:13 EST 2002


Terry Reedy wrote:
> 
> "Alexander Schmolck" <a.schmolck at gmx.net> wrote in message
> news:yfslm3ibyb7.fsf at black132.ex.ac.uk...
> > Similarly also can't see a good conceptual or pragmatic reason why
> all lists
> > shouldn't have .get, .items. etc. indeed a .get method for sequence
> types
> > would be often quite useful and being able to write
> >
> >   for i, elt in seq.items():...
> 
> In 2.3, I believe, this will be spelled seq.enumerate()

    enumerate(seq)

as it works on lists, tuples and iterators. 

    holger




More information about the Python-list mailing list