A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-February/012854.html below:

[Python-Dev] Unit testing (again)

[Python-Dev] Unit testing (again) [Python-Dev] Unit testing (again)Barry A. Warsaw barry@digicool.com
Tue, 13 Feb 2001 10:00:19 -0500
>>>>> "JH" == Jeremy Hylton <jeremy@alum.mit.edu> writes:

    JH> Whitespace indentation is natural and makes code easier to
    JH> read.  Putting little snippets of Python code in string
    JH> literals passed to exec has the opposite effect.

Especially because requiring the snippets to be in strings means
editing them with a Python-aware editor becomes harder.

    JH> doctest is a nice middle ground, because the code snippets are
    JH> in a natural setting -- an interactive interpreter setting.

And at least there, I can for the most part just cut-and-paste the
output of my interpreter session into the docstrings.

-Barry



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4