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

Add get function to Trie class #29

Merged
merged 3 commits into from Mar 24, 2016
Merged

Add get function to Trie class #29

merged 3 commits into from Mar 24, 2016

Conversation

bartvm
Copy link
Contributor

@bartvm bartvm commented Mar 24, 2016

Currently the get function is inherited from BaseTrie, which means the
raw index gets returned instead of the associated value i.e. trie['foo'] can
return ('bar',) while trie.get('foo') returns and integer.

Currently the `get` function is inherited from BaseTrie, which means the
raw index gets returned instead of the associated value i.e. trie['foo']
returns ('bar',) while trie.get('foo') returns and integer.
@superbobry
Copy link
Member

Good catch! Please add a test for this.

@bartvm
Copy link
Contributor Author

bartvm commented Mar 24, 2016

Done (there was actually a test, but it passed because the values and indices happened to coincide)

@superbobry
Copy link
Member

Thanks! I was just looking at the failing test trying to figure out why it fails :)

@superbobry superbobry merged commit db3ad60 into pytries:master Mar 24, 2016
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.

None yet

2 participants