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?

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 2014-08-21 13:10 +1000
Subject Re: what is the difference between name and _name?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.13227.1408590657.18130.python-list@python.org> (permalink)

Show all headers | 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