SortedDict init with list of tuples
Reported by: |
Thomas Güttler <hv@…> |
Owned by: |
nobody |
Component:
|
Core (Other)
|
Version:
|
dev
|
Severity:
|
|
Keywords:
|
|
Cc:
|
|
Triage Stage:
|
Ready for checkin
|
Has patch:
|
yes
|
Needs documentation:
|
no
|
Needs tests:
|
no
|
Patch needs improvement:
|
no
|
Easy pickings:
|
no
|
UI/UX:
|
no
|
This small patch improves SortedDict. You can give
to the constructor a list of tuples. Since dict
supports this interface, SortedDict should support it, too.
It is convenient, if you want to give SortedDict some initial data.
The patch includes a test.
Change History
(5)
Component: |
Uncategorized → Core framework
|
Triage Stage: |
Unreviewed → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Sure, looks good enough and like Thomas said, it matches
dict
's interface