Collaps arrays/ list of intergers

2014-08-19 Thread Jurgens de Bruin
Hi All, I do hope somebody can help me with the following: I have the followings lists which represent the upper and lower value of a range/array. a = [1,50] b = [75,150] c = [25,42] d = [120,149] e = [35,55] What I would like to happen is that overlapping range will collapse to a single

Re: Please help with Threading

2013-06-02 Thread Jurgens de Bruin
On Saturday, 18 May 2013 10:58:13 UTC+2, Jurgens de Bruin wrote: This is my first script where I want to use the python threading module. I have a large dataset which is a list of dict this can be as much as 200 dictionaries in the list. The final goal is a histogram for each dict 16

Please help with Threading

2013-05-18 Thread Jurgens de Bruin
This is my first script where I want to use the python threading module. I have a large dataset which is a list of dict this can be as much as 200 dictionaries in the list. The final goal is a histogram for each dict 16 histograms on a page ( 4x4 ) - this already works. What I currently do is

Re: Please help with Threading

2013-05-18 Thread Jurgens de Bruin
I will post code - the entire scripts is 1000 lines of code - can I post the threading functions only? -- http://mail.python.org/mailman/listinfo/python-list

Compare tuples of different lenght

2011-08-20 Thread Jurgens de Bruin
Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if found two tuples the smallest tuples is removed from the list. example if tuple 1 and tuple 3 are compare it should find that a single element in

Re: Compare tuples of different lenght

2011-08-20 Thread Jurgens de Bruin
On Aug 20, 10:45 am, Chris Rebert c...@rebertia.com wrote: On Sat, Aug 20, 2011 at 1:25 AM, Jurgens de Bruin debrui...@gmail.com wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element

Re: Compare tuples of different lenght

2011-08-20 Thread Jurgens de Bruin
On Aug 20, 10:45 am, Chris Rebert c...@rebertia.com wrote: On Sat, Aug 20, 2011 at 1:25 AM, Jurgens de Bruin debrui...@gmail.com wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element

Re: Compare tuples of different lenght

2011-08-20 Thread Jurgens de Bruin
On Aug 20, 12:17 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Jurgens de Bruin wrote: Hi, I have a list of tuples: [(2,),(12,13),(2,3,4),(8,),(5,6),(7,8,9),] I would like to compare all the tuples to each other and if one element if found two tuples the smallest