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

steno_dictionary: fix StenoDictionary.__setitem implementation #1022

Merged

Conversation

benoit-pierre
Copy link
Member

Make sure an existing previous mapping is removed before updating it (so reverse_lookup/casereverse_lookup results are not erroneous).

Also slightly speedup StenoDictionary.update in the common case (when the dictionary being updated being updated is empty, e.g. when loading), to avoid the slowdown brought by the fix.

Make sure an existing previous mapping is removed before updating it.
@morinted morinted merged commit 823a125 into openstenoproject:master Nov 11, 2018
@benoit-pierre benoit-pierre deleted the fix_steno_dictionary_set_item branch January 28, 2019 09:34
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