1 2def test(): 3 """ 4 >>> test() 5 True 6 """ 7 cdef int x = 5 8 return bool(x) 9 10def test_bool_and_int(): 11 """ 12 >>> test_bool_and_int() 13 1 14 """ 15 cdef int x = 5 16 cdef int b = bool(x) 17 return b 18