> Michael Spencer wrote: > > This can be written more concisely as a generator:
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If iterable has no elements, I believe the behaviour should be [init], > there is also the case of init=None that needs to be handled. Right. So it is "more concise" only by being incomplete, right? What other advantages might it have? > otherwise, that is more or less what I wrote for my scanl/scanl1. I didn't see a post with that code. Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list