Re: [BangPypers] Truth Tests (bool)

2012-01-13 Thread Sreenivas Reddy T
I would like to clear things here.I am assuming beginner as a common denominator to this post. len() method is just a shortcut to __len__ magic method .So when you call len() on your own container type ,it does not traverse whole sequence ,it just calls __len__ method and returns value(assume

Re: [BangPypers] Truth Tests (bool)

2012-01-13 Thread Noufal Ibrahim
Sreenivas Reddy T thatiparthysreeni...@gmail.com writes: I would like to clear things here.I am assuming beginner as a common denominator to this post. len() method is just a shortcut to __len__ magic method .So when you call len() on your own container type ,it does not traverse whole

Re: [BangPypers] I have solved some of the project euler problems in python

2012-01-13 Thread Senthil Kumaran
Very nice. I have found Euler' problems focusing on maths a lot. I could have only solve a couple of them, this thread kindles my interest to try more. :) Senthil On Thu, Jan 12, 2012 at 11:48:26PM +0530, Anand Balachandran Pillai wrote: Hi Reddy, I had solved some 50 or odd