Message215103
Why would we need bytes.fill(length, value)? Is b'\xVV' * length (or if value is a variable containing int, bytes((value,)) * length) unreasonable? Similarly, bytearray(b'\xVV) * length or bytearray((value,)) * length is both Pythonic and performant. Most sequences support multiplication so simple stuff like this can be done easily and consistently; why invent a new approach unique to bytes/bytearrays? |
|
Date |
User |
Action |
Args |
2014-03-29 00:35:36 | josh.r | set | recipients:
+ josh.r, barry, terry.reedy, ncoghlan, r.david.murray, ethan.furman, martin.panter, serhiy.storchaka |
2014-03-29 00:35:36 | josh.r | set | messageid: <1396053336.55.0.0688263529028.issue20895@psf.upfronthosting.co.za> |
2014-03-29 00:35:36 | josh.r | link | issue20895 messages |
2014-03-29 00:35:36 | josh.r | create | |
|