Closed matteodellamico closed 10 years ago
This appears to be solved simply by replacing self._mapping.sortedkeys with self._mapping._sortedkeys in lines 32 and 53 of _sorteddict.py.
I've seen that the problem is solved in the github repository; please update it on pypi. Thanks!
Yes please, as of 1 Mar 2014 the command "pip install -U blist" says I am up to date with version 1.3.4, however this bug is present. Thanks to Matteodellamico for the fix which I will install manually.
I just uploaded blist 1.3.5 to PyPi with the fix.
In [11]: d = blist.sorteddict()
In [12]: d[1] = 2
In [13]: d.items() Out[13]: ItemsView(sorteddict({1: 2}))
In [14]: d.items()[0]
AttributeError Traceback (most recent call last)