[Python-Dev] accepted bytearray items -- integers or numbers?

Georg Brandl g.brandl at gmx.net
Wed Jul 16 23:48:52 CEST 2008


Currently, most mutating bytearray methods only accept integers
as items (in 3k, in 2.6 they also accept single-char strings, for
a reason I can't remember).

Single-index assignment accepts anything compatible with
operator.index(). This should be made consistent, but in which
direction?

Georg



More information about the Python-Dev mailing list