Skip to content

LayerSet does not behave like a dict #316

@simoncozens

Description

@simoncozens

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions