Open penfree opened 5 years ago
Hi.
del variable[:]
Should be the correct method for .clear()
, and then is python 2 compatible.
>>> data = [1,2,3]
>>> ptr = data
>>> del data[:]
>>> ptr.append(4)
>>> data
[4]
>>>
>>>
>>> data = [1,2,3]
>>> ptr = data
>>> data = []
>>> ptr.append(4)
>>> data
[]
Hi.
del variable[:]
Should be the correct method for.clear()
, and then is python 2 compatible.
ok, i have modified
Is there an alternative to properly deallocate the DB object in Python 2 from outside until this is released?
Is there an alternative to properly deallocate the DB object in Python 2 from outside until this is released?
pip install -U https://github.com/penfree/python-rocksdb/archive/master.zip
you can just use my branch or fork and fix it before new release
AttributeError: 'list' object has no attribute 'clear' Exception AttributeError: "'list' object has no attribute 'clear'" in 'rocksdb._rocksdb.DB.dealloc' ignored