Guido van Rossum added the comment:
PS. Simple repro:
import cgi; bool(cgi.FieldStorage('logo', u'tux.png'))
This reveals it's been fixed in Python 3 -- it raises TypeError there as it
should. (But __nonzero__ should be deleted, and if someone adds __bool__ they
should make sure it raises the same TypeError if self.list is None.)
----------
versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python
3.5
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19097>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com