From john.chandler.lists at googlemail.com Fri Jul 2 11:08:53 2010 From: john.chandler.lists at googlemail.com (John Chandler) Date: Fri, 02 Jul 2010 10:08:53 +0100 Subject: [python-uk] London Python Code Dojo Tomorrow In-Reply-To: <03E396A1-2561-4D8B-B3BE-5AFC7A54F9EF@ntoll.org> References: <03E396A1-2561-4D8B-B3BE-5AFC7A54F9EF@ntoll.org> Message-ID: <4C2DACA5.6020407@googlemail.com> Cheers everyone for another great night. Cells rocks! I think I've found another project to eat into my minimal spare time :-) Cheers, John From fuzzyman at voidspace.org.uk Thu Jul 8 14:47:56 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 08 Jul 2010 13:47:56 +0100 Subject: [python-uk] Next Northants Geeks Meetup: Thursday 15th July, BBQ Abington Park Message-ID: <4C35C8FC.5070907@voidspace.org.uk> Hello all, The next exciting installment of the Northants Geek Meet is nearly upon us. We're having a barbecue on July 15th at Abington Park, starting at 7.30pm. Everyone welcome. If you can bring food, drink and friends - but they're all optional and will be provided. We usually get a good turnout of 10-20 people from the whole spectrum of geekdom. (Programmers, web designers, system administrators, truck drivers, gadget enthusiasts, students and so on.) Everyone is welcome. We'll be at the side of Abington Park nearest the town centre. Pretty much where the "A" appears on this google map: http://maps.google.com/maps?q=abington+park+northampton&sll=37.0625,-95.677068&sspn=60.635244,116.015625 If the weather is too gruesome we'll probably default back to the Malt Shovel pub as usual. A definite decision will be made before 6pm - so check the twitter account (url in the signature of this email) before leaving. Feel free to phone me if you need to check. All the best, Michael Foord -- https://twitter.com/northantsgeeks http://groups.google.com/group/northantsgeeks 07731 383732 From fuzzyman at voidspace.org.uk Thu Jul 15 14:20:44 2010 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 15 Jul 2010 13:20:44 +0100 Subject: [python-uk] Next Northants Geeks Meetup: Thursday 15th July, BBQ Abington Park In-Reply-To: <4C35C8FC.5070907@voidspace.org.uk> References: <4C35C8FC.5070907@voidspace.org.uk> Message-ID: On 8 July 2010 13:47, Michael Foord wrote: > Hello all, > > The next exciting installment of the Northants Geek Meet is nearly upon us. > We're having a barbecue on July 15th at Abington Park, starting at 7.30pm. > Hello all (again), Due to the inclemency of the great british summer, plus a couple of folk who couldn't make it, we're postponing the barbecue until next month. Tonight we'll be at the Malt Shovel pub instead (7.30pm as usual). All the best, Michael Foord > > Everyone welcome. If you can bring food, drink and friends - but they're > all optional and will be provided. We usually get a good turnout of 10-20 > people from the whole spectrum of geekdom. (Programmers, web designers, > system administrators, truck drivers, gadget enthusiasts, students and so > on.) Everyone is welcome. > > We'll be at the side of Abington Park nearest the town centre. Pretty much > where the "A" appears on this google map: > > > http://maps.google.com/maps?q=abington+park+northampton&sll=37.0625,-95.677068&sspn=60.635244,116.015625 > > If the weather is too gruesome we'll probably default back to the Malt > Shovel pub as usual. A definite decision will be made before 6pm - so check > the twitter account (url in the signature of this email) before leaving. > Feel free to phone me if you need to check. > > > All the best, > > Michael Foord > > -- > https://twitter.com/northantsgeeks > http://groups.google.com/group/northantsgeeks > 07731 383732 > > -- http://www.voidspace.org.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: From matth at netsight.co.uk Thu Jul 22 16:37:00 2010 From: matth at netsight.co.uk (Matt Hamilton) Date: Thu, 22 Jul 2010 15:37:00 +0100 Subject: [python-uk] Plone Conference 2010 Earlybird rate ends in 9 days Message-ID: <8E72E535-30A8-41AC-9FA6-ECF85DE2E1DB@netsight.co.uk> Hi All, Just to give any of those who are thinking of going a poke, we are hosting the 8th International Plone Conference here in Bristol at the end of October and the bargain earlybird rate of ?250+VAT for the 3-day conference ends at the end of the month.... just 9 days time! So if you are using Plone, or interested in Plone, or just want to come along and find out a bit more about it (or just want to come for the mini beer and pie festival) then go register your tickets now: http://www.ploneconf2010.org/ We are expecting over 400 delegates from around 30 countries to be attending, with over 50 talks, plus training, sprints, and an un-conference day. For those of you wondering 'what the hell is a Plone?!', Plone is an Open Source python web content management system used by all sorts of organisations worldwide (Oxfam, NASA, Warwickshire Police Force, Novell, etc) for their public websites or intranets. It has been under active development for almost a decade, with over 10,000 svn commits to the core system in the last 12 months alone. As a slight aside... if you want to see how quick it is to get up and running, here is a screencast I just did at Europython yesterday in which I go from nothing but python installed to fully installed and running Plone instance in under 3 minutes: http://is.gd/dAqs1 -Matt -- Matt Hamilton matth at netsight.co.uk Netsight Internet Solutions, Ltd. Business Vision on the Internet http://www.netsight.co.uk +44 (0)117 9090901 Web Design | Zope/Plone Development and Consulting | Co-location | Hosting From kpguy1975 at gmail.com Tue Jul 27 15:32:35 2010 From: kpguy1975 at gmail.com (Vikram K) Date: Tue, 27 Jul 2010 19:02:35 +0530 Subject: [python-uk] nested list help Message-ID: Suppose i have this nested list: >>> x [['NM100', 3, 4, 5, 6, 7], ['NM100', 10, 11, 12, 13], ['NM200', 15, 16, 17]] >>> for i in x: ... print i ... ['NM100', 3, 4, 5, 6, 7] ['NM100', 10, 11, 12, 13] ['NM200', 15, 16, 17] >>> how do i obtain from the above the following nested list: >>> z [['NM100', 3, 4, 5, 6, 7, 10, 11, 12, 13], ['NM200', 15, 16, 17]] >>> for i in z: ... print i ... ['NM100', 3, 4, 5, 6, 7, 10, 11, 12, 13] ['NM200', 15, 16, 17] >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaime.buelta at gmail.com Tue Jul 27 15:48:53 2010 From: jaime.buelta at gmail.com (Jaime Buelta) Date: Tue, 27 Jul 2010 14:48:53 +0100 Subject: [python-uk] nested list help In-Reply-To: References: Message-ID: You can use a defaultdict to order the items and then convert that back again to a nested list: >>> from collections import defaultdict >>> d = defaultdict(list) >>> for i in x: ... d[i[0]].extend(i[1:]) ... >>> d defaultdict(, {'NM100': [3, 4, 5, 6, 7, 10, 11, 12, 13], 'NM200': [15, 16, 17]}) >>> z = [ [k] + v for k,v in d.items() ] >>> z [['NM100', 3, 4, 5, 6, 7, 10, 11, 12, 13], ['NM200', 15, 16, 17]] --- Check my blog! http://wrongsideofmemphis.wordpress.com On Tue, Jul 27, 2010 at 2:32 PM, Vikram K wrote: > Suppose i have this nested list: > > >>> x > [['NM100', 3, 4, 5, 6, 7], ['NM100', 10, 11, 12, 13], ['NM200', 15, 16, > 17]] > >>> for i in x: > ... print i > ... > ['NM100', 3, 4, 5, 6, 7] > ['NM100', 10, 11, 12, 13] > ['NM200', 15, 16, 17] > >>> > > how do i obtain from the above the following nested list: > > >>> z > [['NM100', 3, 4, 5, 6, 7, 10, 11, 12, 13], ['NM200', 15, 16, 17]] > >>> for i in z: > ... print i > ... > ['NM100', 3, 4, 5, 6, 7, 10, 11, 12, 13] > ['NM200', 15, 16, 17] > >>> > > _______________________________________________ > python-uk mailing list > python-uk at python.org > http://mail.python.org/mailman/listinfo/python-uk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaime.buelta at gmail.com Tue Jul 27 15:49:40 2010 From: jaime.buelta at gmail.com (Jaime Buelta) Date: Tue, 27 Jul 2010 14:49:40 +0100 Subject: [python-uk] nested list help In-Reply-To: References: Message-ID: Just for clarification, you can do it also with a dictionary, but with a defaultdict you can append directly items to a list if it's not set. --- Check my blog! http://wrongsideofmemphis.wordpress.com On Tue, Jul 27, 2010 at 2:48 PM, Jaime Buelta wrote: > You can use a defaultdict to order the items and then convert that back > again to a nested list: > >>> from collections import defaultdict > >>> d = defaultdict(list) > >>> for i in x: > ... d[i[0]].extend(i[1:]) > ... > >>> d > defaultdict(, {'NM100': [3, 4, 5, 6, 7, 10, 11, 12, 13], > 'NM200': [15, 16, 17]}) > >>> z = [ [k] + v for k,v in d.items() ] > >>> z > [['NM100', 3, 4, 5, 6, 7, 10, 11, 12, 13], ['NM200', 15, 16, 17]] > > > --- > Check my blog! > http://wrongsideofmemphis.wordpress.com > > > On Tue, Jul 27, 2010 at 2:32 PM, Vikram K wrote: > >> Suppose i have this nested list: >> >> >>> x >> [['NM100', 3, 4, 5, 6, 7], ['NM100', 10, 11, 12, 13], ['NM200', 15, 16, >> 17]] >> >>> for i in x: >> ... print i >> ... >> ['NM100', 3, 4, 5, 6, 7] >> ['NM100', 10, 11, 12, 13] >> ['NM200', 15, 16, 17] >> >>> >> >> how do i obtain from the above the following nested list: >> >> >>> z >> [['NM100', 3, 4, 5, 6, 7, 10, 11, 12, 13], ['NM200', 15, 16, 17]] >> >>> for i in z: >> ... print i >> ... >> ['NM100', 3, 4, 5, 6, 7, 10, 11, 12, 13] >> ['NM200', 15, 16, 17] >> >>> >> >> _______________________________________________ >> python-uk mailing list >> python-uk at python.org >> http://mail.python.org/mailman/listinfo/python-uk >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at alexdutton.co.uk Tue Jul 27 15:59:01 2010 From: lists at alexdutton.co.uk (Alexander Dutton) Date: Tue, 27 Jul 2010 14:59:01 +0100 Subject: [python-uk] nested list help In-Reply-To: References: Message-ID: <4C4EE625.6030407@alexdutton.co.uk> On 27/07/2010 14:32, Vikram K wrote: > how do i obtain from the above the following nested list: Here's another solution, though possibly not a neat one: > http://dpaste.com/222375/ All the best, Alex From dev at alexdutton.co.uk Tue Jul 27 15:45:55 2010 From: dev at alexdutton.co.uk (Alexander Dutton) Date: Tue, 27 Jul 2010 14:45:55 +0100 Subject: [python-uk] nested list help In-Reply-To: References: Message-ID: <4C4EE313.8030408@alexdutton.co.uk> On 27/07/2010 14:32, Vikram K wrote: > [['NM100', 3, 4, 5, 6, 7], ['NM100', 10, 11, 12, 13], ['NM200', 15, > 16, 17]] Possibly a little messy, but... > http://dpaste.com/222375/ All the best, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: