what is the difference between name and _name?

Chris Angelico rosuav at gmail.com
Wed Aug 20 23:10:48 EDT 2014


On Thu, Aug 21, 2014 at 12:20 PM, luofeiyu <elearn2014 at 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



More information about the Python-list mailing list