Skip to content

easier item metadata access (source) #926

@ThomasWaldmann

Description

@ThomasWaldmann

all these item keys are usually used like item[b'foo'] which is unpretty and also unsafe against typos.

an idea to solve that is to use some special object, not just a dict, and access such stuff as item.foo.

if we stay away from a dynamic implementation, we could just define properties for all needed and use tab completion in future.

item.get(key, default) could be reimplemented accordingly.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions