Re: [BangPypers] list problem

2010-07-22 Thread Shekhar Tiwatne
On Thursday 22 July 2010 09:36 PM, Anand Balachandran Pillai wrote: On Thu, Jul 22, 2010 at 7:00 PM, steve wrote: Hi, On 07/22/2010 05:02 PM, Anand Balachandran Pillai wrote: On Thu, Jul 22, 2010 at 3:21 PM, Vikram wrote: Suppose you have the following list: >>>

Re: [BangPypers] list problem

2010-07-23 Thread Shekhar Tiwatne
On Friday 23 July 2010 09:11 AM, Baishampayan Ghose wrote: Out of curiosity I tried benchmarking few of these solutions alongwith the one I wrote using itertools.groupby. My benchmarking did include large data sets and worst case. Results are the shortest solution (by Anand) was way faster than o

Re: [BangPypers] partial flattening of list

2010-07-27 Thread Shekhar Tiwatne
On Tuesday 27 July 2010 12:18 PM, Vikram wrote: have the following: x [['NM100', 1, 2], ['NM100', 3, 4], ['NM200', 5, 6]] for i in x: ... print i ... ['NM100', 1, 2] ['NM100', 3, 4] ['NM200', 5, 6] -- how does one obtain list z such that z = [['NM100',1,2,

Re: [BangPypers] Interesting post on Ruby concurrency model

2011-02-23 Thread Shekhar Tiwatne
On Thursday 24 February 2011 08:08 AM, Ramdas S wrote: On Thu, Feb 24, 2011 at 1:58 AM, Dhananjay Nenewrote: http://merbist.com/2011/02/22/concurrency-in-ruby-explained/ Good one. Thanks. nice one. I didn't quite follow some of the stuff. For eg:the fiber in Ruby, do we have something similar

Re: [BangPypers] Introducing a "new" project

2011-03-02 Thread Shekhar Tiwatne
On Thursday 03 March 2011 04:51 AM, Philippe May wrote: [..] The main idea behind Hanji (that's the name of the project) is: Nice name :-). embedding a web server framework in all kinds of devices. So, it sits in a category somewhere between desktop and web applications. It's built around D

Re: [BangPypers] Nice "feature"

2011-04-01 Thread Shekhar Tiwatne
On Friday 01 April 2011 06:51 PM, Roshan Mathews wrote: On Fri, Apr 1, 2011 at 18:25, Navin Kabra wrote: With Python 2.6.5 (on ubuntu) I get even more bizarre behavior: foo=(1,[2,3,4]) foo[1]+=6 foo[1]+6 won't work anyways l = [2,3,4] l+=6 # same error foo[1] += [6] # treated as tuple o

Re: [BangPypers] List guidelines

2011-09-14 Thread Shekhar Tiwatne
On Wednesday 14 September 2011 07:05 PM, Umar Shah wrote: On Wed, Sep 14, 2011 at 6:56 PM, Noufal Ibrahim wrote: Umar Shah writes: [...] People who are interested in just python jobs as most of guys here would be cant easily filter out non python ones. [...] So, random headhunters/recrui

Re: [BangPypers] Https and http difference in behaviour urllib2

2012-02-22 Thread Shekhar Tiwatne
On Wednesday 22 February 2012 03:34 PM, Amit Sethi wrote: Hi all , Can someone explain to me why things are implemented the following in urllib2. Show your code. It's then easier for people who are willing to help. When I pass encoded url using http it again encodes the parameters whereas in ca

Re: [BangPypers] Pune Python User Group meetup.

2012-11-22 Thread Shekhar Tiwatne
On Thursday 22 November 2012 09:21 PM, Satyajit Ranjeev wrote: Fellow Pythonists, I do realise this is a list for the Bangalore community. Being a very active list I felt posting it here would get the attention of Pune folks subscribed. My apologies if this is not the perfect place to post thi