Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'operator': 0.05; 'python': 0.08; '(it': 0.09; 'wrote:': 0.15; 'bit.': 0.16; 'cleans': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pm,': 0.16; 'received:209.85.210.174': 0.19; 'received:mail- iy0-f174.google.com': 0.19; 'header:In-Reply-To:1': 0.22; 'code': 0.24; 'fri,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'import': 0.29; 'forgot': 0.29; 'to:addr:python-list': 0.34; 'module.': 0.35; 'functions.': 0.37; 'subject:Please': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=T4D1AOpYGRzUx7QWz5XtKPgNMEz/iubZ5rplXv1ksxs=; b=Ts5vv1IYi7L0Gr+wO1vq4NKgieXC0i7rTIIvN52Hn+ey846cWmiQ0VpZW0vbXaiTVp jrEvZBYeFs5rX/UV4aI/6XA96XmCDTTXZZEITyy3zK7iJLgN5nP2nBWSQQLj50akxBR+ JwmRR5csqIMQtjvCwO+rRIkwswQuBFXIUOKzc= MIME-Version: 1.0 In-Reply-To: <2df1dccd-a4ee-4edf-8986-f2afc3422ea3@q15g2000yqk.googlegroups.com> References: <77AE044B1BF3944FAE2435F395F11B4B01859CD7@clt-exmb02.bbtnet.com> <2df1dccd-a4ee-4edf-8986-f2afc3422ea3@q15g2000yqk.googlegroups.com> Date: Fri, 15 Jul 2011 17:57:31 +1000 Subject: Re: Please critique my script From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310716654 news.xs4all.nl 23974 [2001:888:2000:d::a6]:39022 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9522 On Fri, Jul 15, 2011 at 5:19 PM, bruno.desthuilliers@gmail.com wrote: >> (It would have been a lot cleaner if Python exposed its operators as >> functions. > > from operator import add Ah yes, I forgot that module. Yep, that cleans up the code a bit. ChrisA