Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81094

Re: Python docs disappointing

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'example:': 0.03; 'interpreter': 0.05; 'subject:Python': 0.06; 'arguments': 0.09; 'feature.': 0.09; 'output,': 0.09; 'python': 0.11; 'suggest': 0.14; "cc'ing": 0.16; 'material)': 0.16; "module's": 0.16; 'stumbled': 0.16; 'unix,': 0.16; 'unlikely': 0.16; 'url.': 0.16; 'url:urllib': 0.16; 'urllib': 0.16; 'ignore': 0.16; 'wrote:': 0.18; 'library': 0.18; 'module': 0.19; 'basically': 0.19; 'thu,': 0.19; 'meant': 0.20; 'not,': 0.20; 'seems': 0.21; '(the': 0.22; 'import': 0.22; 'email addr:gmail.com&gt;': 0.22; 'certainly': 0.24; 'refers': 0.24; 'skip': 0.24; 'source': 0.25; '&gt;': 0.26; 'header:In-Reply-To:1': 0.27; 'feature': 0.29; 'am,': 0.29; 'nature': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'asked': 0.31; 'code': 0.31; 'software,': 0.31; 'file': 0.32; 'open': 0.33; 'url:python': 0.33; "can't": 0.35; 'one,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'like,': 0.36; 'subject:skip:d 10': 0.36; "i'll": 0.36; 'url:org': 0.36; 'skip:& 10': 0.38; 'nov': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'skip:u 10': 0.60; 'contributing': 0.60; 'ago,': 0.61; 'simply': 0.61; 'name': 0.63; 'here': 0.66; 'response.': 0.68; '20,': 0.68; 'prompt': 0.68; 'overall': 0.69; 'online': 0.71; 'inline': 0.74; 'brief,': 0.84; "else's": 0.84; 'improved.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VxE49Vw9QZw8vOx0QV5k6xFUFPcslTlIUQxkbYJUUlI=; b=XK6L5wZFTh7TTbXsTmPhMh7NOr1FpozOukMyhqMAkgpgq7aRCN7iDafvxxy8TJiPiA wql9MaPRVFE8X5eNO8xqno2M5xhjOPU3sS/eHvDLW1ykMcHMDqi8KjNjB5KiodJYKxTI FvA0qXDqHw4ZGo6JbEg8mhmp5R/Jkutphye6mpmFVZ29RUfArb8NKVAHGYgz2JJ9ObGP NW1mllz8GcrWYhvP78l4ZYEXe1RAshW1BLsmUSJuHwb08AagP4Ts/JpIGTbyL5mCvCys JLhd/ygMQFFl4hH/Kzv8Bdc529FD2cYwcCa4yTlSQqVHrZ6rAnTPYiXL6Og6+ozjHvww 6Lwg==
MIME-Version 1.0
X-Received by 10.42.61.18 with SMTP id s18mr1270043ich.73.1416503908693; Thu, 20 Nov 2014 09:18:28 -0800 (PST)
In-Reply-To <77d357fb-342e-4856-814d-0e0003164fb1@googlegroups.com>
References <h4vj45$5hl$1@reader1.panix.com> <77d357fb-342e-4856-814d-0e0003164fb1@googlegroups.com>
Date Thu, 20 Nov 2014 11:18:28 -0600
Subject Re: Python docs disappointing
From Skip Montanaro <skip.montanaro@gmail.com>
To Python <python-list@python.org>
Content-Type multipart/alternative; boundary=20cf30223e894cfea305084d84e6
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16033.1416503918.18130.python-list@python.org> (permalink)
Lines 119
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416503918 news.xs4all.nl 2860 [2001:888:2000:d::a6]:58688
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:81094

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Nov 20, 2014 at 9:54 AM, <jstnms123@gmail.com> wrote:

> > Here is an *entirely typical* example: on some Unix, try
> >
> > % pydoc urllib
>

I don't know who "kj" is, and jstnms123 seems to be basically off his
rocker, so I won't try cc'ing either of them. (They also seem to
misunderstand the nature of contributing to open source software, but I'll
ignore that.)

Hopefully I'm not duplicating someone else's response. I just stumbled on
this thread. A couple things to note. One, pydoc just assembles the
documentation strings for the item you asked for. Python has both inline
documentation (meant to be brief, quick reference material) and long form
documentation (the library and reference documentation, as well as the
tutorial.) Pydoc just extracts what is available at the interpreter prompt
if you execute

import urllib
help(urllib)

That is meant to answer quick questions like, "what arguments does
urllib.urlopen accept?", not, "what's the overall intent of the urllib
module?". Despite its admitted brevity, note that if you ask pydoc for a
module's documentation, that at the very top of its output, it also
identifies the location of the source code on your system and refers you to
the long form online documentation:

Help on module urllib:

NAME
    urllib - Open an arbitrary URL.

FILE
    /opt/TWWfsw/python27/lib/python2.7/urllib.py

MODULE DOCS
    http://docs.python.org/library/urllib

DESCRIPTION
    ...


I in no way mean to suggest that the documentation can't be improved. I'm
simply pointing out that the documentation is almost certainly better than
kj and jstnms123 give the authors credit for. I added that particular
feature to the pydoc module over ten years ago, so I know it is highly
unlikely your version of pydoc is missing this feature.

Skip

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Python docs disappointing jstnms123@gmail.com - 2014-11-20 07:54 -0800
  Re: Python docs disappointing Joel Goldstick <joel.goldstick@gmail.com> - 2014-11-20 11:51 -0500
    Re: Python docs disappointing albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-12-04 10:27 +0000
      Re: Python docs disappointing Chris Angelico <rosuav@gmail.com> - 2014-12-04 21:37 +1100
      Re: Python docs disappointing Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-04 22:46 +1100
      Re: Python docs disappointing jtan <admin@grails.asia> - 2014-12-05 07:33 +0800
      Re: Python docs disappointing Michael Torrie <torriem@gmail.com> - 2014-12-04 16:57 -0700
  Re: Python docs disappointing Michael Torrie <torriem@gmail.com> - 2014-11-20 09:51 -0700
  Re: Python docs disappointing Skip Montanaro <skip.montanaro@gmail.com> - 2014-11-20 11:18 -0600
  Re: Python docs disappointing Grant Edwards <invalid@invalid.invalid> - 2014-11-20 23:10 +0000
    Re: Python docs disappointing Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-20 23:22 +0000
  Re: Python docs disappointing Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-21 10:29 +1100
    Re: Python docs disappointing Grant Edwards <invalid@invalid.invalid> - 2014-11-21 16:35 +0000

csiph-web