This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum
Date 2013-09-27.00:08:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.)
Date User Action Args
2013-09-27 00:08:23gvanrossumsetrecipients: + gvanrossum
2013-09-27 00:08:23gvanrossumsetmessageid: <>
2013-09-27 00:08:23gvanrossumlinkissue19097 messages
2013-09-27 00:08:23gvanrossumcreate