Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Extends the API of ObservableCollection by inheriting from MutableSequence#38

Merged
theodox merged 2 commits intotheodox:remove_keysfrom
bob-white:observable_sequences
Oct 12, 2016
Merged

Extends the API of ObservableCollection by inheriting from MutableSequence#38
theodox merged 2 commits intotheodox:remove_keysfrom
bob-white:observable_sequences

Conversation

@bob-white
Copy link
Collaborator

This made it a lot easier to teach others how to work with the collections, as they could just reuse what they knew about manipulating lists.

I also went ahead and added a reverse method, which for some reason is not on the MutableSequence abstract class. Though it looks like they fixed this somewhere along the lines for Py3.

The original API was left in place, and all tests continue to pass.

Also extended the API of BoundCollection by inheriting from Sequence, which makes it more tuple-like.

…uence, which gives it most of the standard methods found on list.

I also went ahead and added a reverse method, which for some reason is not on the MutableSequence abstract class.
This made it a lot easier to teach others how to work with the collections, as they could just reuse what they knew about manipulating lists.

The original API was left in place, and all tests continue to pass.

Also extended the API of BoundCollection by inheriting from Sequence, which makes it more tuple-like.
Forgot to include this last night.
Added a test for the new reverse method, and updated the sort test to have unsorted content at the start, and actually call the primary sort method before calling with the reverse flag.
@theodox
Copy link
Owner

theodox commented Oct 12, 2016

I'm pulling this into remove_keys, I'll try it out that way and merge it sideways. I want to make sure I understand how it fires the update events

@theodox theodox closed this Oct 12, 2016
@theodox theodox reopened this Oct 12, 2016
@theodox theodox merged commit 69b5fcf into theodox:remove_keys Oct 12, 2016
@bob-white bob-white deleted the observable_sequences branch November 12, 2016 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants