python not returning true
agent-s
shanekwon at gmail.com
Wed Feb 14 00:15:19 EST 2007
I have a function, generally described as so:
def function(args):
if condition:
if condition2:
function(args+1)
elif condition3:
print "text"
return True
else:
return False
which is used in:
if function(args):
print "ok"
so here basically "text" will print out when condition3 is true but it
will not print out "ok" when condition3 is true. When it's true it
should print out borth "text" and "ok"
More information about the Python-list
mailing list