8 Feb
2017
8 Feb
'17
2:10 a.m.
R. David Murray added the comment:
bool(()) False bool([]) False bool('') False
What you want to say is that 'in' coerces the result returned by __contains__ to a boolean value. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16011> _______________________________________