Hans Mulder <han...@xs4all.nl> wrote:
> There's also: hasattr(<object>, '__call__').  It works in both 2.x and 3.x.

Good work, Hans. I do find that to be a more pythonic approach,
personally, being more concerned with an object's ability than its
abstract type.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to