Arne Babenhauserheide<p>I just realized that <a href="https://rollenspiel.social/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a> intentionally does not document how to use <a href="https://rollenspiel.social/tags/doctests" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>doctests</span></a> (they say so in the forums¹).</p><p>And I’m annoyed right now.</p><p>positive: they are wrong about doctests not being maintained in <a href="https://rollenspiel.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a>: python 3.13 brings colored output for doctests:</p><p><a href="https://docs.python.org/3/whatsnew/3.13.html#whatsnew313-doctest" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.python.org/3/whatsnew/3.1</span><span class="invisible">3.html#whatsnew313-doctest</span></a></p><p>I consider doctests to be one of the most elegant ways to test beautifully self-contained functions with easy to understand input.</p><p>¹ <a href="https://forum.djangoproject.com/t/testing-django-with-doctest/25550" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">forum.djangoproject.com/t/test</span><span class="invisible">ing-django-with-doctest/25550</span></a></p><p>EDIT: please read the thread! *happy*</p><p><a href="https://rollenspiel.social/tags/programmming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programmming</span></a></p>