A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-October/083036.html below:

[Python-Dev] Documentation idea

[Python-Dev] Documentation idea [Python-Dev] Documentation ideaRaymond Hettinger python at rcn.com
Thu Oct 16 23:37:56 CEST 2008
From: "Doug Hellmann" <doug.hellmann at gmail.com
> This seems like a large undertaking.

Not necessarily.  It can be done incrementally, starting with things like str.split() that almost no one understands completely.  It 
should be put here and there where it adds some clarity.


> I'm sure you're not  underestimating the effort, but I have the sense that you may be  overestimating the usefulness of the 
> results (or maybe I'm  underestimating them through some lack of understanding).  Would it be  more optimal (in terms of both 
> effort and results) to extend the  existing documentation and/or docstrings with examples that use all of  the functions so 
> developers can see how to call them and what results  to expect?

The idea includes pure python code augmented by doctestable doctrings
with enough examples.  So, we're almost talking about the same thing.
There is one difference; since the new attribute is guaranteed to be
executable, it can be reliably run through doctest.  The same is *not* true
for arbitrary docstrings.


Raymond

More information about the Python-Dev mailing list

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