Georg Brandl <ge...@python.org> added the comment: "an object is true" is a short way of saying "bool(obj) is True". So the docs match the behavior.
Returning the actual object instead of True/False from the "in" operator is a feature request. ---------- assignee: docs@python -> nosy: +georg.brandl type: behavior -> enhancement versions: -Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13667> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com