Author pitrou
Recipients eric.araujo, ezio.melotti, jcea, max-alleged, petri.lehtinen, pitrou, rhettinger, terry.reedy, vstinner, xuanji
Date 2011-10-18.11:32:07
SpamBayes Score 0.00375334
Marked as misclassified No
Message-id <1318937528.1.0.21960336978.issue12170@psf.upfronthosting.co.za>
In-reply-to
Content
> I made the
> decision to raise a ValueError decision because __contains__ of both
> bytes and bytearray raise a ValueError when passed an integer not in
> range(0, 256).

That sounds reasonable. OverflowError would have been another choice, but I agree that consistency with __contains__ is sensible.
History
Date User Action Args
2011-10-18 11:32:08pitrousetrecipients: + pitrou, rhettinger, terry.reedy, jcea, vstinner, ezio.melotti, eric.araujo, xuanji, max-alleged, petri.lehtinen
2011-10-18 11:32:08pitrousetmessageid: <1318937528.1.0.21960336978.issue12170@psf.upfronthosting.co.za>
2011-10-18 11:32:07pitroulinkissue12170 messages
2011-10-18 11:32:07pitroucreate