Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
Merge b5d2ad2 into 9a9c77b
Browse files Browse the repository at this point in the history
  • Loading branch information
babbageclunk committed Feb 10, 2015
2 parents 9a9c77b + b5d2ad2 commit d374409
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/why.rst
Expand Up @@ -126,13 +126,13 @@ is

.. doctest::

>>> class ArtisinalClass(object):
>>> class ArtisanalClass(object):
... def __init__(self, a, b):
... self.a = a
... self.b = b
...
... def __repr__(self):
... return "<ArtisinalClass(a={}, b={})>".format(self.a, self.b)
... return "<ArtisanalClass(a={}, b={})>".format(self.a, self.b)
...
... def __eq__(self, other):
... if other.__class__ is self.__class__:
Expand Down Expand Up @@ -173,8 +173,8 @@ is
...
... def __hash__(self):
... return hash((self.a, self.b))
>>> ArtisinalClass(a=1, b=2)
<ArtisinalClass(a=1, b=2)>
>>> ArtisanalClass(a=1, b=2)
<ArtisanalClass(a=1, b=2)>

which is quite a mouthful and it doesn't even use any of ``characteristic``'s more advanced features like type checks or default values
Also: no tests whatsoever.
Expand Down

0 comments on commit d374409

Please sign in to comment.