projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make smart futures avoid polling.
[python_utils.git]
/
collect
/
bidict.py
diff --git
a/collect/bidict.py
b/collect/bidict.py
index 1fa66dc81fe6bd64e16b80a8fa49bea7502c46db..8153e54446c8a4c5a36f96ba85e0b93c9afafe18 100644
(file)
--- a/
collect/bidict.py
+++ b/
collect/bidict.py
@@
-1,6
+1,6
@@
#!/usr/bin/env python3
#!/usr/bin/env python3
-class
bid
ict(dict):
+class
BiD
ict(dict):
def __init__(self, *args, **kwargs):
"""
A class that stores both a Mapping between keys and values and
def __init__(self, *args, **kwargs):
"""
A class that stores both a Mapping between keys and values and
@@
-9,7
+9,7
@@
class bidict(dict):
is possible to have several keys with the same value, using
the inverse map returns a sequence of keys.
is possible to have several keys with the same value, using
the inverse map returns a sequence of keys.
- >>> d =
bid
ict()
+ >>> d =
BiD
ict()
>>> d['a'] = 1
>>> d['b'] = 2
>>> d['c'] = 2
>>> d['a'] = 1
>>> d['b'] = 2
>>> d['c'] = 2