Any classes found are recursively searched similarly, to test docstrings in
their contained methods and nested classes.
-.. impl-detail::
- Prior to version 3.4, extension modules written in C were not fully
- searched by doctest.
-
.. _doctest-finding-examples:
>>> d
['Harry', 'Hermione']
-.. note::
-
- Before Python 3.6, when printing a dict, Python did not guarantee that
- the key-value pairs was printed in any particular order.
-
There are others, but you get the idea.
Another bad idea is to print things that embed an object address, like ::