#5744 closed (fixed)
SortedDict init with list of tuples
Reported by: | 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 |
Pull Requests: | How to create a pull request | ||
Description ¶
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)
by , 17 years ago
Attachment: | sorted_dict__init_tuples.diff added |
---|
comment:1 by , 17 years ago
Cc: | added |
---|
comment:2 by , 17 years ago
Component: | Uncategorized → Core framework |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [6506]) Fixed #5744 -- Allowed SortedDict contructor to be passed a list of tuples to match the interface of dict, thanks Thomas Güttler.
comment:4 by , 17 years ago
Cc: | removed |
---|
Note:
See TracTickets
for help on using tickets.
Sure, looks good enough and like Thomas said, it matches
dict
's interface