Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__contains__(k) does not handle dotted checks properly #16

Open
zsandrus opened this issue Apr 16, 2020 · 1 comment · May be fixed by #17
Open

__contains__(k) does not handle dotted checks properly #16

zsandrus opened this issue Apr 16, 2020 · 1 comment · May be fixed by #17

Comments

@zsandrus
Copy link

When doing a contains(k) check against a DottedDict, the first level of the dotted notation is not checked for existence.

Example:

d = DottedDict({'a':{'b':{'c':'d'}}})
works = 'a.c' in d
fails = 'e.f' in d

@zsandrus zsandrus linked a pull request Apr 16, 2020 that will close this issue
@edwardselby
Copy link

any update to this?

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 a pull request may close this issue.

2 participants