Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.42!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.250.MISMATCH!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: 88888 Dihedral Newsgroups: comp.lang.python Subject: I love the decorator in Python!!! Date: Wed, 7 Dec 2011 23:18:46 -0800 (PST) Organization: http://groups.google.com Lines: 10 Message-ID: <29996186.628.1323328726122.JavaMail.geo-discussion-forums@prfb7> Reply-To: comp.lang.python@googlegroups.com NNTP-Posting-Host: 1.168.138.227 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1323328830 23564 127.0.0.1 (8 Dec 2011 07:20:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 8 Dec 2011 07:20:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=1.168.138.227; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16805 I use the @ decorator to behave exactly like a c macro that does have fewer side effects. I am wondering is there other interesting methods to do the jobs in Python? A lot people complained that no macro in Python. Cheers to the rule of Python : If there's none then just go ahead and build one!