Message138809
> A bytearray is for working with mutable data. We don't support using > it in all places that the non-mutable data types can be used.
>>> bytearray(b'abcd').strip(bytearray(b'da'))
bytearray(b'bc')
>>>
.translate, .find, .partition, ...
>>> bytearray(b'.').join((bytearray(b'a'), bytearray(b'b')))
bytearray(b'a.b')
>>> bytearray(b'.').join((b'a', b'b'))
bytearray(b'a.b')
>>>
all these methods could use only bytes objects |
|
Date |
User |
Action |
Args |
2011-06-21 23:46:02 | py.user | set | recipients:
+ py.user, r.david.murray |
2011-06-21 23:46:02 | py.user | set | messageid: <1308699962.51.0.664691351711.issue12380@psf.upfronthosting.co.za> |
2011-06-21 23:46:01 | py.user | link | issue12380 messages |
2011-06-21 23:46:01 | py.user | create | |
|