circuitpython/tests/basics/builtin-callable.py
Paul Sokolovsky c3e72a8cc8 mp_obj_is_callable(): Only object types can be callable.
Fixes segfault on callable("string").
2014-01-23 03:37:21 +02:00

6 lines
101 B
Python

import sys
print(callable(1))
print(callable("dfsd"))
print(callable(callable))
print(callable(sys))