Merge lp:~mandel/desktopcouch/fix_bug_519873 into lp:desktopcouch
Proposed by
Manuel de la Peña
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Chad Miller | ||||
Approved revision: | not available | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~mandel/desktopcouch/fix_bug_519873 | ||||
Merge into: | lp:desktopcouch | ||||
Diff against target: |
142 lines (+105/-0) 2 files modified
desktopcouch/records/record.py (+43/-0) desktopcouch/records/tests/test_record.py (+62/-0) |
||||
To merge this branch: | bzr merge lp:~mandel/desktopcouch/fix_bug_519873 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John O'Brien (community) | Approve | ||
Chad Miller (community) | Approve | ||
Review via email: mp+19018@code.launchpad.net |
Commit message
Make list-like MergableList objects behave more like lists by adding pop() and remove() methods. (LP: #519873)
To post a comment you must log in.
As explained in bug 519873 the remove and pop methods are missing. Although the optimal solution for this kind of problem would be implement a Bimap for the MergeableList this is not feseable because python lists and dicts are not hashable. This solution provides a O(n*m) performance where n is the number of objects in the mergeable list and m is the size of the possible inner lists.