[Baypiggies] a python puzzle
glen at glenjarvis.com
Wed Apr 14 18:19:21 CEST 2010
Zip, or anything it itertools doesn't do what you need?
On Apr 14, 2010, at 8:20 AM, Brent Pedersen <bpederse at gmail.com> wrote:
> hi, in trying to write a func that does a kind of merging of 2
> sorted lists,
> i've come up with a fairly simple implementation that "almost works":
> but it hits StopIteration before returning the last value (, None)
> i can wrap the whole thing in a bunch more if statements, i've tried
> heapq.merge, but cant find a nice solution.
> any ideas? i think it's an interesting problem.
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
More information about the Baypiggies