Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.055 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.01; 'subject:Python': 0.06; 'subject:into': 0.09; 'cc:addr:python-list': 0.11; 'agree.': 0.16; 'declaration': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:variable': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'something': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'subject:?': 0.36; 'thank': 0.38; 'mine': 0.38; 'subject:Can': 0.60; 'you.': 0.62; 'back': 0.62; 'mar': 0.68; 'statement,': 0.68; 'colleague': 0.91; 'to:none': 0.92; 'taught': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=frPKkTgYc4tCAxfNhEqVAXBpC6ldp+hRNH8sXor56gY=; b=nen7MlGtK82eueR1YpaHPO+FFuvPs/fj8U0VC+w8jJrvMfG1kO6itj1KguN3ofQrC9 GmCGOFJFeU/b5w1e0gQhMRZOgQO2OG3bd6L2CiV1Z35l0yep6LaC7k5fYlnle/68SCA6 rhLSKUFVHgYZ/Cp1bpPb9lflI7qEEG8TzHhGWzHc8TOOLJnERXOIRNx7/38xfOBUh5rh p6OEedEOoJAqnAllvSbsE8tN7fCR0p4k29ugtX7ybocluiktBpEwK1qws0/IJQZ4WyMj Dp63ZNUs4RM9ksfpuj/S5+G5OuwdrUVqglHY/w3oBPvhM8E3ysZrz8EVuwqdEIRbdcyg K0CQ== MIME-Version: 1.0 X-Received: by 10.66.129.133 with SMTP id nw5mr7139632pab.98.1393639242158; Fri, 28 Feb 2014 18:00:42 -0800 (PST) In-Reply-To: <87sir2et1d.fsf@elektro.pacujo.net> 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> <877g8ff3hn.fsf@elektro.pacujo.net> <87wqgfdk6a.fsf@elektro.pacujo.net> <87sir2et1d.fsf@elektro.pacujo.net> Date: Sat, 1 Mar 2014 13:00:42 +1100 Subject: Re: Can global variable be passed into Python function? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393639251 news.xs4all.nl 2829 [2001:888:2000:d::a6]:59874 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67281 On Sat, Mar 1, 2014 at 10:06 AM, Marko Rauhamaa wrote: > A colleague of mine taught me decades back that the whole point of OO > was the avoidance of if and switch statements. So if your code has an if > or switch statement, chances are you are doing something wrong. > > I agree. *boggle* Are you seriously suggesting that every condition requires the declaration of an object type? UGH! No thank you. ChrisA