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

LayerSet does not behave like a dict #316

Open
simoncozens opened this issue Oct 26, 2020 · 2 comments
Open

LayerSet does not behave like a dict #316

simoncozens opened this issue Oct 26, 2020 · 2 comments

Comments

@simoncozens
Copy link

According to the documentation:

This object behaves like a dict.

>>> isinstance(dcf.layers, defcon.LayerSet)
True
>>> dcf.layers.keys()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'LayerSet' object has no attribute 'keys'
>>> dcf.layers.values()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'LayerSet' object has no attribute 'values'
>>> dcf.layers.items()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'LayerSet' object has no attribute 'items'
@benkiel
Copy link
Member

benkiel commented Dec 17, 2020

Got it. Will look at.

@typesupply
Copy link
Member

My guess is that I copied and pasted that documentation line. I'd just remove it rather than adding keys, items, etc.

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

No branches or pull requests

3 participants