R3
import inspect
inspect.isfunction
Size: a a a
R3
import inspect
inspect.isfunction
R3
RO
KM
import inspect
inspect.isfunction
А
VA
Python3
def a():
pass
b = ""
print(callable(a))
print(callable(b))
True
False
RO
l
def test_func():
return None
def some_func(some_arg):
if isinstance(some_arg, callable):
print('func')
some_func(test_func)

l
l
import inspect
inspect.isfunction
R3
l
R3
l
R3
l
Python3
def a():
pass
b = ""
print(callable(a))
print(callable(b))
True
False
А
l