[Python-Dev] accepted bytearray items -- integers or numbers? (original) (raw)
Georg Brandl g.brandl at gmx.net
Wed Jul 16 23:48:52 CEST 2008
- Previous message: [Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement)
- Next message: [Python-Dev] accepted bytearray items -- integers or numbers?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement)
- Next message: [Python-Dev] accepted bytearray items -- integers or numbers?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]