Skip to content

Commit

Permalink
Fix doctests.
Browse files Browse the repository at this point in the history
  • Loading branch information
drvinceknight committed Dec 4, 2016
1 parent 7f6747d commit 87cc6d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorials/advanced/using_the_cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ Let us rerun the above match but using the cache::
We can take a look at the cache::

>>> cache # doctest: +ELLIPSIS
{(<class 'axelrod.strategies.gobymajority.GoByMajority'>, <class 'axelrod.strategies.alternator.Alternator'>, 200): [('C', 'C'), ..., ('C', 'D')]}
{('Soft Go By Majority', 'Alternator', 200): [('C', 'C'), ..., ('C', 'D')]}
>>> len(cache)
1

This maps a triplet of 2 player classes and the match length to the resulting
This maps a triplet of 2 player names and the match length to the resulting
interactions. We can rerun the code and compare the timing::

>>> def run_match_with_cache():
Expand Down

0 comments on commit 87cc6d5

Please sign in to comment.