On 9/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Yeah, this is a better solution. flatten() just doesn't scream "built-in!" to me.
-Brett
Michael> There are several different possible approaches in pure Python,
Michael> but is this an idea that has legs ?
Why not add it to itertools? Then, if you need a true list, just call
list() on the returned iterator.
Yeah, this is a better solution. flatten() just doesn't scream "built-in!" to me.
-Brett
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com