Skip to content

Conversation

@soxofaan
Copy link
Owner

@soxofaan soxofaan commented Dec 2, 2021

Inspired by #12/#13:
define a CodeTable class for better encapsulation of code table details (and to avoid ugly type annotations)


# TODO: use something like namedtuple or class with slots for codewords instead of tuples?

def __init__(self, symbol_code_map: dict):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not dict, but Mapping

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 this pull request may close these issues.

3 participants