Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishnan Sanjay
/
cmsc13600-public
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5144136c
authored
Jun 04, 2020
by
Krishnan Sanjay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ooc.py (make it hashable!)
parent
ac0e6a8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
hw5/ooc.py
hw5/ooc.py
View file @
5144136c
...
@@ -89,7 +89,7 @@ class MemoryLimitedHashMap(object):
...
@@ -89,7 +89,7 @@ class MemoryLimitedHashMap(object):
return
key
return
key
def
path2Subkey
(
self
,
k
):
def
path2Subkey
(
self
,
k
):
key
=
k
.
split
(
"_"
)
key
=
tuple
(
k
.
split
(
"_"
)
)
return
key
return
key
def
flushKey
(
self
,
k
,
subkey
=
""
):
def
flushKey
(
self
,
k
,
subkey
=
""
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment