Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1a.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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'read.': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'elegant,': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:into': 0.09; 'language.': 0.14; 'dict': 0.16; 'happily': 0.16; 'lambda:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:variable': 0.16; 'language': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; '---': 0.24; "i've": 0.25; 'tables': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'steven': 0.31; 'subject:?': 0.36; 'should': 0.36; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'easy': 0.60; 'chain': 0.60; 'invest': 0.60; 'subject:Can': 0.60; 'free': 0.61; 'viruses': 0.61; "you're": 0.61; 'protection': 0.63; 'our': 0.64; 'talking': 0.65; 'antivirus': 0.68; 'attractive': 0.81; 'beats': 0.84; 'nonsense.': 0.84; 'presumably': 0.84; 'received:89': 0.85; 'hands': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Can global variable be passed into Python function? Date: Sat, 01 Mar 2014 01:10:49 +0000 References: <27ac2248-0ca3-4ba6-9d25-eaad324bc5e9@googlegroups.com> <5f4f5a5f-327a-4616-8235-17ee9e74c488@googlegroups.com> <530fef58$0$11113$c3e8da3@news.astraweb.com> <871tynznpd.fsf@elektro.pacujo.net> <53104798$0$11113$c3e8da3@news.astraweb.com> <87ha7jy2qs.fsf@elektro.pacujo.net> <5310b031$0$29985$c3e8da3$5496439d@news.astraweb.com> <87iorzf4ro.fsf@elektro.pacujo.net> <531115e1$0$29985$c3e8da3$5496439d@news.astraweb.com> <87ob1qeqe0.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-161-236.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <87ob1qeqe0.fsf@elektro.pacujo.net> X-Antivirus: avast! (VPS 140228-3, 28/02/2014), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393636506 news.xs4all.nl 2889 [2001:888:2000:d::a6]:34514 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67273 On 01/03/2014 00:03, Marko Rauhamaa wrote: > >> Dict dispatch tables are elegant, attractive and efficient if you are >> using pre-existing functions or functions you can create using lambda: > > I beg to differ. The dict dispatch tables are very hard to read. The > fully blown-out if-else chain beats it in elegance hands down. > I think you're talking nonsense. I've been happily using dict dispatch tables for years and, like Steven and presumably many others, find them dead easy to read. Perhaps you should invest in a better optician and/or glasses? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com