Yury Selivanov added the comment:

> Explicitly rejecting classes is a good idea, IMHO, as is requiring that any 
> function-like object must be callable, obviously.

Yeah, I think it's good to restrict this duck-typing as much as possible. 
Committing the patch.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17159>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to