I think whatever is_blah() only should evaluate as a boolean to the correct value, not so much that it has to a boolean. For example, if I had
def is_nonempty_list(x): # Sorry that this is somewhat contrived if x == []: return [] return 1 and so if I did if is_nonempty_list([]): print "if this prints then it's wrong" if not is_nonempty_list([]): print "if this doesn't print then it's wrong" it would work as if it returned True or False. FTR and what it's worth, in strongly-typed languages one can do: bool is_blah(); void* is_blah(bool certificate); which I've seen elsewhere. Best, Travis -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.