Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.096 X-Spam-Evidence: '*H*': 0.81; '*S*': 0.00; 'subject:method': 0.09; 'def': 0.13; 'subject:between': 0.16; 'class': 0.29; 'received:209.85.210.46': 0.30; 'received:mail- pz0-f46.google.com': 0.30; 'message-id:@gmail.com': 0.31; 'skip:@ 10': 0.34; 'to:addr:python-list': 0.35; 'charset:us-ascii': 0.37; 'received:google.com': 0.37; 'difference': 0.38; 'received:209.85': 0.38; 'received:192': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=bW2sh+KMRaHe6T0kxhsbJtUD7kjRxdPfIRgZscXgNJ8=; b=BFBKHiBI/P1IqZWxccHvFH//c7rXUMMWwPXrta9uMsatUW+wUbbNX+xGOboMzwkSYn nc5VPENY3qXhKgxEZZiaw7GnWr3nzj7B7qguMu5rWrlVK4KFFrLazgHbzNYFo1SrILn3 n3t7SVoe2DToWVoIDLVb1V8+yWaB16sZW2MzM= From: Zheng Li Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: what is the difference between @property and method Date: Thu, 9 Feb 2012 17:50:38 +0900 To: python-list@python.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328777445 news.xs4all.nl 6898 [2001:888:2000:d::a6]:36168 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20059 class A(object): @properymethod def value1(self): return 'value1' def value2(self): return 'value2' what is the difference between value1 and value2.