[issue12170] Bytes objects do not accept integers to many functions

2011-05-25 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12170] Bytes objects do not accept integers to many functions

2011-05-24 Thread Max
Max added the comment: "This set of commands with list, strings, tuples, but not bytes objects." should read "This set of commands works with list, strings, tuples, but not bytes objects." -- ___ Python tracker __

[issue12170] Bytes objects do not accept integers to many functions

2011-05-24 Thread Max
New submission from Max : Bytes objects when indexed provide integers, but do not accept them to many functions, making them inconsistent with other sequences. Basic example: >>> test = b'012' >>> n = test[1] >>> n 49 >>> n in test True >>> test.index(n) TypeError: expected an object with the b