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


Groups > comp.lang.python > #76693

Re: what is the difference between name and _name?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '21,': 0.07; 'attribute': 0.07; 'expressions': 0.07; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:between': 0.16; 'wrote:': 0.18; 'result.': 0.19; 'thu,': 0.19; '>>>': 0.22; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'subject:what': 0.31; 'subject:the': 0.34; 'info': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'pm,': 0.38; '?how': 0.84; 'to:none': 0.92
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:cc :content-type; bh=BlkjdMQ+KuqXuNZOmFPBBtWJoxyFL15NGAAmDHXmTjo=; b=hS12ykQohjts+CoaqN1gK2i2QLUz8htjX3RNAAmxKAisMgpLO2DxP2D/7bFnf2vFu1 b6p9vjXkHeyvrCDv8n5F/cAcJLEEzoCbZkSFAYREQbq15g4eqtri50d1YKGuRvWDqkA7 rcVP4Fuhw1WaUjgbHQV/eZ/JGewXBR+dqAl1/SGiX0O6eSEg53firfvhRcLXUK8AHX9h eM0L0XZtgl8F+fAkWKWh6NPfijwtwDh3laNWtWIkaVtGqYXzp7zOZd/cS/D8Cb5iSg4c VchkHK2iZNi3J9BPezgXl7IEakSgBZfSJR4OTCa3dxZ8EVsZqS/NxW0ztkuOkvibwYVm RSOQ==
MIME-Version 1.0
X-Received by 10.42.84.9 with SMTP id j9mr1206313icl.60.1408590648820; Wed, 20 Aug 2014 20:10:48 -0700 (PDT)
In-Reply-To <53F55750.5050804@gmail.com>
References <mailman.13190.1408519045.18130.python-list@python.org> <53f46100$0$29884$c3e8da3$5496439d@news.astraweb.com> <mailman.13201.1408534898.18130.python-list@python.org> <53f4be1f$0$29978$c3e8da3$5496439d@news.astraweb.com> <53F55750.5050804@gmail.com>
Date Thu, 21 Aug 2014 13:10:48 +1000
Subject Re: what is the difference between name and _name?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.13227.1408590657.18130.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408590657 news.xs4all.nl 2844 [2001:888:2000:d::a6]:40120
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76693

Show key headers only | View raw


On Thu, Aug 21, 2014 at 12:20 PM, luofeiyu <elearn2014@gmail.com> wrote:
>
> all the expressions can not get the info "name property docs" ?how can i get
> it?

>>> Person.name.__doc__
'name property docs'

It's an attribute of the property, not of the result.

ChrisA

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


Thread

what is the difference between name and _name? luofeiyu <elearn2014@gmail.com> - 2014-08-20 15:16 +0800
  Re: what is the difference between name and _name? Steven D'Aprano <steve@pearwood.info> - 2014-08-20 08:49 +0000
    Re: what is the difference between name and _name? luofeiyu <elearn2014@gmail.com> - 2014-08-20 19:41 +0800
      Re: what is the difference between name and _name? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-21 01:26 +1000
        Re: what is the difference between name and _name? luofeiyu <elearn2014@gmail.com> - 2014-08-21 10:20 +0800
        Re: what is the difference between name and _name? Chris Angelico <rosuav@gmail.com> - 2014-08-21 13:10 +1000
        Re: what is the difference between name and _name? luofeiyu <elearn2014@gmail.com> - 2014-08-22 14:37 +0800
    Re: what is the difference between name and _name? "Frank Millman" <frank@chagford.com> - 2014-08-20 14:18 +0200

csiph-web