Unlike the rest of the blist API, you cannot pass a custom key function to the sorteddict constructor using a keyword argument. It fails because it takes key to be an item in the dict: sorteddict(key=str.lower)
The example of correct usage, sorteddict(str.lower), is mentioned in the docs. But the doc does not say that the key must always be positional and never specified as a keyword. I would suggest adding a note to that effect.
Unlike the rest of the blist API, you cannot pass a custom key function to the sorteddict constructor using a keyword argument. It fails because it takes key to be an item in the dict:
sorteddict(key=str.lower)
The example of correct usage,
sorteddict(str.lower)
, is mentioned in the docs. But the doc does not say that the key must always be positional and never specified as a keyword. I would suggest adding a note to that effect.