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

2012-01-17 Thread Sreenivas Reddy T
>
> My key insight when solving these using Python was how I was able to
> use techniques like memoizing using generators
>

Yep. my code base is full of generators. The take away from euler problems
,for me is , i lost the fear of mathematics and cool tricks with recursion.
https://gist.github.com/1625699
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] Truth Tests (bool)

2012-01-17 Thread Sreenivas Reddy T
>
>
> This is an interesting point especially with Python3 returning something
> other than lists for things like dict.keys. I'll dig into this a
> little.
>
> Thanks.
>
>
Noufal,if haven't gone through ,

>From the PEP -3106.
"This PEP proposes to change the .keys(), .values() and .items() methods of
the built-in dict type to return a set-like or unordered container object
whose contents are derived from the underlying dictionary rather than a
list which is a copy of the keys, etc.; and to remove the .iterkeys(),
.itervalues() and .iteritems() methods."

http://www.python.org/dev/peps/pep-3106/

Please see the pseudo-code  at the bottom,they override __len__ magic
method.
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers


Re: [BangPypers] How about meet-up

2012-01-17 Thread Ramjee Ganti
Date : 21st Jan 2012 ?
rAm

i Think, i Wait, i Fast -- Siddhartha
http://sodidi.ramjeeganti.com


On Tue, Jan 17, 2012 at 10:26 AM, Noufal Ibrahim wrote:

> Venkatraman S  writes:
>
> > On Mon, Jan 16, 2012 at 9:39 PM, Noufal Ibrahim  >wrote:
> >
> >> That's swell. I think it would be nice to have the meeting at ZeOmega
> >> then.
> >>
> >
> > Been quiet sometime since i attended any conference/meetup; I will try to
> > be there then.
>
> [...]
>
> Shall we confirm it then?
>
> Time   : 1500
> Venue  : ZeOmega (Baiju can provide the complete address and link)
> Agenda : Data store by Anand (I would also like to spend maybe 30 minutes
> discussing how we can systematise out user group meetings and do
> something more than just meet rarely.
>
> If everyone is in agreement, it would be nice to have a headcount.
>
> Thanks
>
> --
> ~noufal
> http://nibrahim.net.in
>
> It's more than magnificent-it's mediocre. -Samuel Goldwyn
> ___
> BangPypers mailing list
> BangPypers@python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
___
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers