You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defcand (a,b) :
if (a) :
if (b) :
returntrueelse :
returnfalseelse :
returnfalse
If I (try to) call it with :
i = 'none'
limit = 5
cand (type (i) is int, i > limit)
I get an error :
TypeError: '>' not supported between instances of 'int' and 'str'
In fact the function is not called. If I put a print in it, it is not displayed.
For me it is a bug. The function must be called and the second element not evaluated before calling the function but only if requested by the function code.