Skip to content
This repository was archived by the owner on Nov 15, 2018. It is now read-only.
This repository was archived by the owner on Nov 15, 2018. It is now read-only.

Convert cmdpathtypes definitions from dict to immutable structure. #18

@luqasz

Description

@luqasz

Possible solutions:

class CmdPath(namedtuple('CmdPath', ('absolute', 'type', 'keys', 'modord'))):

        def __hash__(self):
            return hash(self.absolute)

http://benno.id.au/blog/2014/11/30/a-better-namedtuple

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions