R. David Murray added the comment:

Python uses duck typing, though.  Maybe someone is depending on those public 
attributes not getting coerced to boolean.  Probably not, granted, since they 
are newish, but a python programmer might expect the value to get passed 
through.  I'm of two minds about the advisability of that, but given that 
someone *could* be depending on it, I think it would be better to not do the 
bool call, since there is no bug fixed by doing the bool call, making it an 
unnecessary change in behavior.

----------

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

Reply via email to