Message148911
> One *dirty* trick I am thinking about would be to use something like
> array.tostring() to construct the byte string.
array('B', ...) objects are pickled using two bytes per character, so there would be no advantage:
>>> pickle.dumps(array.array('B', b"hello"), 2)
b'\x80\x02carray\narray\nq\x00X\x01\x00\x00\x00Bq\x01]q\x02(KhKeKlKlKoe\x86q\x03Rq\x04.' |
|
Date |
User |
Action |
Args |
2011-12-06 12:25:47 | sbt | set | recipients:
+ sbt, irmen, pitrou, alexandre.vassalotti, meador.inge |
2011-12-06 12:25:47 | sbt | set | messageid: <1323174347.71.0.565108110534.issue13505@psf.upfronthosting.co.za> |
2011-12-06 12:25:47 | sbt | link | issue13505 messages |
2011-12-06 12:25:46 | sbt | create | |
|