neoedmund wrote: > ivestgating the web, i found something similiar with my approch: > http://en.wikipedia.org/wiki/Duck_typing > "Duck-typing avoids tests using type() or isinstance(). Instead, it > typically employs hasattr() tests"
that's not entirely correct, though: in Python, duck-typing typically uses "Easier to Ask Forgiveness than Permission" (EAFP), aka "Just Do It", rather than "Look Before You Leap" (LBYL). </F> -- http://mail.python.org/mailman/listinfo/python-list