On Wed, 02 Mar 2011 23:46:31 +0000, Steven D'Aprano wrote:

> For starters, how about giving an example of a built-in string, list or
> dictionary where `if len(x) == 0` and `if x` give different results?

Er, how embarrassment... of course I mean either len(x) != 0, or not x, 
take your pick.


-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to