Re: [Python-Dev] Adding concat function to itertools

2007-09-28 Thread Terry Reedy
"Bruce Frederiksen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] A 64K attachment. Please do not do such a worse-than-useless thing again. Especially when only 1K is original. ___ Python-Dev mailing list Python-Dev@python.org http://

Re: [Python-Dev] Adding concat function to itertools

2007-09-28 Thread Damien Miller
On Fri, 28 Sep 2007, Raymond Hettinger wrote: > > Interestingly, they seem to all have something to do with dictionary > > values() that are themselves iterable. > > I see. These are instances of a recurring general use case of > chain() as a one-level flattener. > > Will give consideration t

Re: [Python-Dev] Adding concat function to itertools

2007-09-28 Thread Raymond Hettinger
[Bruce Frederiksen] I've added a new function to itertools called 'concat'. This function is much like chain, but takes all of the iterables as a single argument. [Raymond] >> Any practical use cases or is this just a theoretical improvement? >> >> For Py2.x, I'm not wil

Re: [Python-Dev] Adding concat function to itertools

2007-09-28 Thread Mike Klaas
On 28-Sep-07, at 10:45 AM, Raymond Hettinger wrote: > [Bruce Frederiksen] >>> I've added a new function to itertools called 'concat'. This >>> function is >>> much like chain, but takes all of the iterables as a single >>> argument. > > Any practical use cases or is this just a theoretical i

Re: [Python-Dev] Adding concat function to itertools

2007-09-28 Thread Raymond Hettinger
[Bruce Frederiksen] >> I've added a new function to itertools called 'concat'. This function is >> much like chain, but takes all of the iterables as a single argument. Any practical use cases or is this just a theoretical improvement? For Py2.x, I'm not willing to unnecessarily expand the modu

Re: [Python-Dev] Adding concat function to itertools

2007-09-28 Thread Brett Cannon
On 9/22/07, Bruce Frederiksen <[EMAIL PROTECTED]> wrote: > > I've added a new function to itertools called 'concat'. This function is > much like chain, but takes all of the iterables as a single argument. Thus > concat(some_iterables) is logically equivalent to chain(*some_iterables); > the dif

Re: [Python-Dev] Adding concat function to itertools

2007-09-28 Thread Kevin Jacobs <[EMAIL PROTECTED]>
On 9/22/07, Bruce Frederiksen <[EMAIL PROTECTED]> wrote: > > I've added a new function to itertools called 'concat'. This function is > much like *chain*, but takes all of the iterables as a single argument. > I've needed this once or twice, though my implementation was called 'starchain', in li