TypeError: __new__() got an unexpected keyword argument 'load'

1.1k Views Asked by At

TypeError Traceback (most recent call last) in

1 slt = SortedList(load = 1000)
      2 assert slt._load == 10000
      3 assert slt._twice == 20000
      4 assert slt._half == 5000
      5 slt._check()

TypeError: new() got an unexpected keyword argument 'load'

1

There are 1 best solutions below

0
On

This is probably coming in a little late but it seems that the load parameter in sortedcontainers has been removed from the later versions. It should still work with version 1.5.7.

https://github.com/mcocdawc/chemcoord/issues/54