Antoine Pitrou <pit...@free.fr> added the comment: > 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. ---------- nosy: +pitrou _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12170> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com