elderic:
> 1.: --> sort of clumsy and discouraged by the docs as far as I read
> import types
> type(f) is types.FunctionType

What's the problem with this?

from types import FunctionType
if isinstance(f, FunctionType):
    ...

Bye,
bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to