one more question,how can i get the doc info?
class Person(object):
def __init__(self, name):
self._name = name
def getName(self):
print('fetch....')
return self._name
def setName(self, value):
print('change...')
self._name = value
def delName(self):
print('remove....')
del self._name
name = property(getName, setName, delName, "name property docs")
Person("bob").name.doc
Person("bob").name.__doc__
Person("bob")._name.doc
Person("bob")._name.__doc__
all the expressions can not get the info "name property docs" ?how can i
get it?
--
https://mail.python.org/mailman/listinfo/python-list