Revision 2649
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/dicts.py | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import util |
6 | 6 |
|
7 |
def is_dict(value): return hasattr(value, '__getitem__') |
|
8 |
|
|
7 | 9 |
class IdDict(dict): |
8 | 10 |
'''A dict that stores objects by id()''' |
9 | 11 |
|
Also available in: Unified diff
dicts.py: Added is_dict()