Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Joel Goldstick Newsgroups: comp.lang.python Subject: Re: the global keyword: Date: Sun, 19 Jun 2016 13:16:32 -0400 Lines: 28 Message-ID: References: <5766ADB1.6070907@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de GTxBFFL9jkrA/ArKBLmOVgmoTXKHQj2Z3RB57AF2gcIQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'python,': 0.02; 'cc:addr :python-list': 0.09; 'globals': 0.09; 'received:209.85.218': 0.10; 'url:blog': 0.10; 'variables': 0.15; '2016': 0.16; 'cause.': 0.16; 'costs.': 0.16; 'inaccurate': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'thread.': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'referring': 0.22; 'variables.': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'url:mailman': 0.30; 'supposed': 0.31; 'generally': 0.32; 'url:python': 0.33; 'url:listinfo': 0.34; 'list': 0.34; 'received:google.com': 0.35; "isn't": 0.35; 'but': 0.36; 'there': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; '(and': 0.36; 'subject:: ': 0.37; 'seem': 0.37; 'things': 0.38; 'received:209': 0.38; 'why': 0.39; 'subject:the': 0.39; 'rather': 0.39; 'url:mail': 0.40; 'your': 0.60; 'avoid': 0.61; 'between': 0.65; 'here': 0.66; 'url:info': 0.71; 'low': 0.83; 'batchelder': 0.84; 'pardon': 0.84; 'remark': 0.84; 'schreef': 0.84; 'subject::': 0.85; 'to:none': 0.91; 'joel': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=ZU9DLa6s00LSeXiruRsIBO95Ibo32/Yk+m4KUe3dA6I=; b=mtNrXNjgfw5/4Q9n/M8wR6pIJr4c9dUh+7WAJ7R+m9j0xgaZZqKqkBytpIjCABVJU4 c5A8ea8WMBrPHlFJtVbPgyFwS/bIGsBV2ABsw9JNXsPRKd8ByYsLNbLaBhzjVF4fyi7b K3s6DSCqC5J8OMtlLZj370PGE84NKa2xuWl50DgU1uNt3g21R+qm0YcoZLYkIcaPe0uE Ky5B9zhXUBpt9261+TfjkzpBQjaBoslmjji6KHVcJeAnS1p67sN38g7WUxE/yLjiiSZk KW/mP8e3udVAozIXDgo2TRafO58x28U5miXQaXzC5lSM+MbL9x+hu5mrtg+zWysz51xK m/BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=ZU9DLa6s00LSeXiruRsIBO95Ibo32/Yk+m4KUe3dA6I=; b=LKb3o7NVJ9YFHFmql5Js4Jb97BkUqPBzFaPB8zP7sFaoqbCg90te8DvyoPS/xiQovq 52mYMU8QCcFhj462yJoAtumDgXCJvMysp4XBiKgpCCX8SlJiY6OZYZPbQnMgkEJhSiRW UVNqkurN4XNeukjqZ8FFV3FFFcSQgVQ76sHuv6NrdrcoQJRrESHbvA1NulbdWF5akLcl scdh/Rm7Jyc5Ghbisre2LqWpuikEZPWfSsegGajclm+wDOjOYGH/6a8t723wptXbuZ9I XIxAheV3Z5HfeTqjlAC9TNl39n3dr1GgsUFpoi5fxo8VnAfZp4y1Zfif9SNyRCb2p8PI ONqA== X-Gm-Message-State: ALyK8tLiibW6hdtJTTB6ExCVBtrgslzMA7usSKG5EQfNPU9E3PHkmcfUR08bF6Mk0xkPNb1z2k0Nj0Sedxql/A== X-Received: by 10.157.44.240 with SMTP id e45mr7012152otd.177.1466356593370; Sun, 19 Jun 2016 10:16:33 -0700 (PDT) In-Reply-To: <5766ADB1.6070907@rece.vub.ac.be> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <5766ADB1.6070907@rece.vub.ac.be> Xref: csiph.com comp.lang.python:110149 On Sun, Jun 19, 2016 at 10:35 AM, Antoon Pardon wrote: > Op 12-06-16 om 23:10 schreef BartC: >> On 12/06/2016 20:25, Ned Batchelder wrote: >>> Just as here there is no link between x >>> and y: >>> >>> x = 12 >>> y = x >> >> (And that's a good illustration of why 'y' isn't a name reference to 'x', referring to the "...ducks limp" thread. But best not to rake it up again...) >> > I find this rather inaccurate reference to what your opposition is > supposed to have states together with the remark best not to rake > this up again, rather disingenuous > -- > https://mail.python.org/mailman/listinfo/python-list People who understand global variables generally avoid using them at all costs. People who don't understand why globals create problems seem to want to use them, and then become baffled at the problems they cause. If you are learning python, very very low on your list of things to learn is global variables. -- Joel Goldstick http://joelgoldstick.com/blog http://cc-baseballstats.info/stats/birthdays