Message180492
> They do have some rather odd behavior when passed to the builtin
> though:
>
> >>> bytes(10)
> b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
>
> It would be much more convenient for me if bytes(int) returned the
> ASCIIfication of that int; but honestly, even an error would be better
> than this behavior. (If I wanted this behavior - which I never have -
> I'd rather it be a classmethod, invoked like "bytes.zeroes(n)".)
I would agree with you, but it's probably too late to change... |
|
Date |
User |
Action |
Args |
2013-01-23 19:02:44 | pitrou | set | recipients:
+ pitrou, gvanrossum, loewis, terry.reedy, exarkun, vstinner, eric.smith, christian.heimes, benjamin.peterson, glyph, ezio.melotti, arjennienhuis, flox, uau, martin.panter, serhiy.storchaka |
2013-01-23 19:02:44 | pitrou | link | issue3982 messages |
2013-01-23 19:02:44 | pitrou | create | |
|