getting an empty tuple

Peter Decker pydecker at gmail.com
Sun Jul 31 17:51:35 CEST 2005


On 31 Jul 2005 08:40:26 -0700, nephish at xit.net <nephish at xit.net> wrote:

> how do i encorporate that into an equation ?
> i have tried all kinds of stuff
> 
> if x == 0L
> if x(0) == None
> if x == None
> 
> anyway, what shoud i do to test if the result is empty?

Just like any other test:

if not x:

-- 

# p.d.



More information about the Python-list mailing list