Avram <pyt...@avram.us> added the comment:
That is not necessarily the same thing, hence why there was a bug. >>> hasattr(object, '__bool__') False >>> bool(object) True I think you may be right that magic methods shouldn't magically appear for wrapped objects, except those that do magically appear, like __bool__. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39966> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com