Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'own.': 0.03; "shouldn't": 0.07; 'pm,': 0.10; 'wrote:': 0.14; 'docstring': 0.16; 'docstrings': 0.16; 'finney': 0.16; 'hierarchy': 0.16; 'imo,': 0.16; 'inherited': 0.16; 'specified.': 0.16; 'cc:addr:python- list': 0.17; 'writes:': 0.19; 'header:In-Reply-To:1': 0.21; 'thu,': 0.22; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'gregory': 0.23; 'smart': 0.23; "doesn't": 0.25; 'url:mailman': 0.26; 'thanks.': 0.27; "i'm": 0.27; 'message-id:@mail.gmail.com': 0.28; 'subject:how': 0.29; 'subject:?': 0.29; 'explicitly': 0.29; 'cc:addr:python.org': 0.30; 'url:listinfo': 0.30; 'criticism': 0.30; 'ewing': 0.30; 'received:209.85.215': 0.30; 'received:209.85.215.46': 0.30; 'received:mail- ew0-f46.google.com': 0.30; 'propose': 0.32; "i'll": 0.34; 'received:google.com': 0.37; 'useful': 0.37; 'received:209.85': 0.37; 'url:python': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'received:209': 0.39; 'either': 0.39; 'happen': 0.60; 'more': 0.60; 'human': 0.62; 'entitled': 0.63; 'shield': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fbC8wC1csX4kOV4pPs+MVd31C7t6M8C+xscjh1toKb4=; b=fNo+SP8Vy1o3TlqaQugpKE9Qo4hWpz/etnVMi+GzMSaG9Ker7UCtAP0ssHuEgUF5cO 9lOE/XxmleoU4MH8RyGnOXzDfznFkpKkoHZwKrCVYYhYyvcyCwsYX5FrioMIqegrPRI4 pYpYiSeYp22k/1vYRLm6M8VzpvyAkGArgpukg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=eVy4h5fNqD84LhBE8ssQYaD0O13UKmtkIB5G0F6ohZaSw6+WMq+hPPkzXBKdweLo66 0BGuX01CF+udg7DFaBExTjz2vB7+t3kRlITp5hAUmUapk/CbXeDjYnyPZEPd9rgotEKS 0ixEuloKFhs1QkFiW7YC9+Is0Zt6Wy1u3GdFU= MIME-Version: 1.0 In-Reply-To: <87ei32wpve.fsf@benfinney.id.au> References: <95cvmqF5b0U1@mid.individual.net> <87ei32wpve.fsf@benfinney.id.au> Date: Thu, 9 Jun 2011 17:31:35 -0600 Subject: Re: how to inherit docstrings? From: Eric Snow To: Ben Finney Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1307662296 news.xs4all.nl 49174 [::ffff:82.94.164.166]:35480 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7332 On Thu, Jun 9, 2011 at 5:23 PM, Ben Finney wro= te: > Gregory Ewing writes: > >> IMO, it shouldn't be necessary to explicitly copy docstrings around >> like this in the first place. Either it should happen automatically, >> or help() should be smart enough to look up the inheritance hierarchy >> when given a method that doesn't have a docstring of its own. > > Since the docstrings are useful in more places than just =91help=92, I'm = +1 > on having docstrings be automatically inherited if not specified. > > Would the OP like to propose this on =91python-ideas=92? > Yeah, I'll do that. Thanks. -eric > -- > =A0\ =A0 =A0 =A0 =A0=93Odious ideas are not entitled to hide from critici= sm behind | > =A0`\ =A0 =A0 =A0 =A0 =A0the human shield of their believers' feelings.= =94 =97Richard | > _o__) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Stallman | > Ben Finney > -- > http://mail.python.org/mailman/listinfo/python-list >