Re: What about an EXPLICIT naming scheme for built-ins?

From: Alex Martelli (aleaxit_at_yahoo.com)
Date: 09/04/04


Date: Sat, 4 Sep 2004 11:00:29 +0200

Jp Calderone <exarkun@divmod.com> wrote:
   ...
> They are new. There is no reason to worry about breaking
> compatibility. Why sequences and not iterators? I would prefer the

sorted returns a sequence (a list) because it must build one anyway, and
it would be a waste NOT to return it in the several cases in which you
want one. list(iter(list(something))) is simply a stupid waste...

Alex



Relevant Pages

  • itertools.intersect?
    ... given one or more ordered sequences, ... Stack Overflow URL). ... and incredibly valid use of iterators, ... addition to the itertools module. ...
    (comp.lang.python)
  • Re: Death to tuples!
    ... IIRC, "apply" used to require that the second argument be a tuple; it now accepts sequences, and has been depreciated in favor of *args, which accepts not only sequences but iterators. ... print 'x is really odd' ...
    (comp.lang.python)
  • Re: Death to tuples!
    ... >> either side of the assignment, and iterators on the values side. ... >> accepts not only sequences but iterators. ... And in argument lists. ...
    (comp.lang.python)
  • Re: python and macros (again) [Was: python3: where keyword]
    ... Just sequences and iterators. ... Generators are functions which return ... are diverging goals. ...
    (comp.lang.python)
  • Re: NDC-Sopranos last night
    ... I can't stand the friggin dream ... sequences - a complete waste of time, ... thread is so soap-opera-esque I think I'm watching Days of our Lives. ...
    (rec.music.gdead)