Skip to content

Conversation

@sweeneyde
Copy link
Member

@sweeneyde sweeneyde commented Jun 7, 2020

Copy link

@remilapeyre remilapeyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think MappingView in collections.abc will also need to be updated.

Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
@sweeneyde
Copy link
Member Author

I think MappingView in collections.abc will also need to be updated.

I'm not convinced the spec should change. I wouldn't want to make it so that some user class is no longer implementing the MappingView interface if it had already registered as a MappingView but doesn't (or maybe even can't?) have a mapping property. For precedent, the dict views have __reversed__ methods, while MappingView has remained without. It seems that most of the ABC interfaces that have existed since the creation of the ABC module have remained stable ever since.

@sweeneyde sweeneyde closed this Jun 9, 2020
@sweeneyde sweeneyde deleted the dictview_mapping branch April 5, 2022 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants