Talin wrote: > A common Python idiom is to take different actions based on the capabilities > of an object rather than its type.
I have no objection to that when the capability can be tested for easily and efficiently and without danger of causing undesirable side effects. But callability is not such a capability, therefore I think it's a bad idea to design an API which relies on being able to test for it. -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com