Skip to content

Conversation

0x2b3bfa0
Copy link

@0x2b3bfa0 0x2b3bfa0 commented Jan 17, 2021

Fixes #20 and closes #19 because now __getitem__ serves a completely different purpose: it was intended for private use between other class methods, but now it's part of the special methods of the Mapping Abstract Base Class.

This pull request doesn't alter any of the existing behaviors for __getattr__, but __getitem__ has a completely different behavior in order to support the Abstract Base Class.

Fixes #20 and closes #19 because now __getitem__  serves a completely 
different purpose: it was intended for private use between other class 
methods, but now it's part of the special methods of the Mapping 
Abstract Base Class.
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.

config should implement Mapping ABC __getitem__ should raise KeyError if the key is not found
1 participant