Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20059
| From | Zheng Li <dllizheng@gmail.com> |
|---|---|
| Subject | what is the difference between @property and method |
| Date | 2012-02-09 17:50 +0900 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5575.1328777445.27778.python-list@python.org> (permalink) |
class A(object):
@properymethod
def value1(self):
return 'value1'
def value2(self):
return 'value2'
what is the difference between value1 and value2.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
what is the difference between @property and method Zheng Li <dllizheng@gmail.com> - 2012-02-09 17:50 +0900
csiph-web