- X methods have same number of arguments than corresponding A methods- X has all attributes of Ait returns true if:For now I've basically called it isducktype(X, A)Hi,I've made a try of a function that check object/class members for duck typing.
or if A.__ducktypecheck__(X) returns True
Behaviour looks like isinstance and issubclass (support tuples...).
Any opinion about a feature like this ?
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas