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

Encapsulate code table details in a CodeTable class #16

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

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.

2 participants