diff --git a/docs/coding/structures.rst b/docs/coding/structures.rst index c7d28ca2b4ae985a09d7b6fdeb49fe5bc46d2782..f8245ce68c94ce30f9b3e86c7a5fe85d642b913a 100644 --- a/docs/coding/structures.rst +++ b/docs/coding/structures.rst @@ -122,7 +122,7 @@ DictionaryView HashableWrapper =============== -.. autofunction:: satella.coding.structures.HashableWrapper +.. autoclass:: satella.coding.structures.HashableWrapper TwoWayDictionary ================ diff --git a/satella/__init__.py b/satella/__init__.py index 19397ba0aab018fbcee1f93e2a6618e5cfd78093..23e24119ad11437a6b6de387f6bc584eda8e1a80 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.7.16_a1' +__version__ = '2.7.16_a2' diff --git a/satella/coding/structures/hashable_objects.py b/satella/coding/structures/hashable_objects.py index 43e23b32f1eedbb5483ae8e0b8e26fff7bd31816..1d162532cacb6da039d97b5c9b11832ef3ad8347 100644 --- a/satella/coding/structures/hashable_objects.py +++ b/satella/coding/structures/hashable_objects.py @@ -9,13 +9,9 @@ class HashableWrapper(Proxy): Use like: - >>> class NotHashable: - >>> def __init__(self, a): - >>> self.a = a - >>> a = HashableWrapper(NotHashable(5)) - >>> assert a.a == 5 - >>> a.a = 4 - >>> assert a.a == 4 + >>> a = {1:2, 3:4} + >>> a = HashableWrapper(a) + >>> hash(a) """ __slots__ = ()