Closed wbolster closed 10 years ago
...and python3.2 and python3.4
Nevermind, this was an error in a hacky test script I used, which called bytes()
passing an integer value while building a big WriteBatch
. In Python 2 this works:
$ python2 -c 'print(bytes(10))'
10
In Python 3 this would add huge strings, causing out of memory errors quite easily:
$ python3 -c 'print(bytes(10))'
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
See https://github.com/wbolster/plyvel/issues/35#issuecomment-53431047 for a bit more details.