Message299060
it's a tiny bit slow, but that works, thank you. I guess we can close this
% python -m timeit -s "import io; b = io.BytesIO(b'0' * 2 ** 30)" "p = b.tell(); b.seek(0, 2); b.tell(); b.seek(p)"
1000000 loops, best of 3: 0.615 usec per loop
% python -m timeit -s "import io; b = io.BytesIO(b'0' * 2 ** 30)" "len(b.getvalue())"
10000000 loops, best of 3: 0.174 usec per loop |
|
Date |
User |
Action |
Args |
2017-07-25 12:21:58 | rthr | set | recipients:
+ rthr, martin.panter |
2017-07-25 12:21:58 | rthr | set | messageid: <1500985318.61.0.174020332308.issue31025@psf.upfronthosting.co.za> |
2017-07-25 12:21:58 | rthr | link | issue31025 messages |
2017-07-25 12:21:58 | rthr | create | |
|