Re: [BangPypers] Truth Tests (bool)

2012-01-11 Thread Saager Mhatre
https://gist.github.com/1327614#file_truth.py I hacked together this little script to cover (hopefully) all the cases for my reference. - d ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] [X-POST] Selenium Simple Test

2012-01-11 Thread Senthil Kumaran
On Wed, Jan 11, 2012 at 09:16:04AM +0530, Venkatraman S wrote: > This does look super-simple! Linky : > http://www.youtube.com/watch?v=qGPostUOAEI Looks pretty simple. But the XPATH based expression language exposed via selenium is not hard either. That ties with the browser well and most often w

[BangPypers] Is there any relation between web2py and webpy

2012-01-11 Thread Senthil Kumaran
Other than the fact that they are both web frameworks. Given their levenshtein distance being 1, I am really curious if there any social or historical relationship between then. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.

Re: [BangPypers] Truth Tests (bool)

2012-01-11 Thread Senthil Kumaran
On Wed, Jan 11, 2012 at 09:49:58AM +0530, Noufal Ibrahim wrote: > > It is not clear what you want from your description. To check if a > > list is empty, see if len( list ) is zero. > > You don't want to do that. Your "list" might be a generator (unless you > check for type which is a bad idea a

Re: [BangPypers] Is there any relation between web2py and webpy

2012-01-11 Thread Anand Chitipothu
2012/1/11 Senthil Kumaran > Other than the fact that they are both web frameworks. > > Given their levenshtein distance being 1, I am really curious if there > any social or historical relationship between then. > No. Anand ___ BangPypers mailing list

Re: [BangPypers] Truth Tests (bool)

2012-01-11 Thread Senthil Kumaran
On Wed, Jan 11, 2012 at 03:14:05PM +0530, Saager Mhatre wrote: > https://gist.github.com/1327614#file_truth.py > I hacked together this little script to cover (hopefully) all the cases for > my reference. Cool. Good to see some difficult to comprehend code. :) The bool's are intuitively easier t

Re: [BangPypers] Is there any relation between web2py and webpy

2012-01-11 Thread Senthil Kumaran
On Wed, Jan 11, 2012 at 06:34:14PM +0530, Anand Chitipothu wrote: > > No. Ok. It's good coincidence. -- Senthil ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers

Re: [BangPypers] Is there any relation between web2py and webpy

2012-01-11 Thread Gora Mohanty
On Wed, Jan 11, 2012 at 6:03 PM, Senthil Kumaran wrote: > Other than the fact that they are both web frameworks. > > Given their levenshtein distance being 1, [...] Bah! So is the distance between "Gora" and "Gori" (apply smileys as needed). Regards, Gora ___

Re: [BangPypers] Truth Tests (bool)

2012-01-11 Thread Noufal Ibrahim
Senthil Kumaran writes: > On Wed, Jan 11, 2012 at 09:49:58AM +0530, Noufal Ibrahim wrote: > >> > It is not clear what you want from your description. To check if a >> > list is empty, see if len( list ) is zero. >> >> You don't want to do that. Your "list" might be a generator (unless you >> ch

Re: [BangPypers] Is there any relation between web2py and webpy

2012-01-11 Thread Senthil Kumaran
On Wed, Jan 11, 2012 at 08:43:07PM +0530, Gora Mohanty wrote: > > So is the distance between "Gora" and "Gori" (apply smileys > as needed). Wow! And I believe that would make a "dynamic programming" pair. (ditto) -- Senthil ___ BangPypers mailing lis

Re: [BangPypers] [X-POST] Selenium Simple Test

2012-01-11 Thread Baiju M
On Wed, Jan 11, 2012 at 9:16 AM, Venkatraman S wrote: > This does look super-simple! Linky : > http://www.youtube.com/watch?v=qGPostUOAEI Selenium Webdriver Python API is easy to understand. The API doesn't force to do in one style, because it's not a framework. It gives freedom to choose your