Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #110149
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: the global keyword: |
| Date | Sun, 19 Jun 2016 13:16:32 -0400 |
| Lines | 28 |
| Message-ID | <mailman.141.1466356596.2288.python-list@python.org> (permalink) |
| References | <edb72d55-3a44-45f8-8122-b86d62e837c3@googlegroups.com> <njkbu8$e4c$1@dont-email.me> <f4e01b32-8a34-4479-a988-c06d580bf4ce@googlegroups.com> <njkj4c$90a$1@dont-email.me> <5766ADB1.6070907@rece.vub.ac.be> <CAPM-O+y=BuAOS1NsWtJ1=ajRA89VWzaM4rV8F2F5R35iR9qUmQ@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de GTxBFFL9jkrA/ArKBLmOVgmoTXKHQj2Z3RB57AF2gcIQ== |
| Return-Path | <joel.goldstick@gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAPM-O+y=BuAOS1NsWtJ1=ajRA89VWzaM4rV8F2F5R35iR9qUmQ@mail.gmail.com> |
| X-Mailman-Original-References | <edb72d55-3a44-45f8-8122-b86d62e837c3@googlegroups.com> <njkbu8$e4c$1@dont-email.me> <f4e01b32-8a34-4479-a988-c06d580bf4ce@googlegroups.com> <njkj4c$90a$1@dont-email.me> <5766ADB1.6070907@rece.vub.ac.be> |
| Xref | csiph.com comp.lang.python:110149 |
Show key headers only | View raw
On Sun, Jun 19, 2016 at 10:35 AM, Antoon Pardon <antoon.pardon@rece.vub.ac.be> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
the global keyword: Marcin Rak <mrak@sightlineinnovation.com> - 2016-06-11 16:44 -0700
Re: the global keyword: Random832 <random832@fastmail.com> - 2016-06-11 19:50 -0400
Re: the global keyword: Marcin Rak <mrak@sightlineinnovation.com> - 2016-06-11 17:12 -0700
Re: the global keyword: Random832 <random832@fastmail.com> - 2016-06-11 21:27 -0400
Re: the global keyword: Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-11 20:15 -0700
Re: the global keyword: Random832 <random832@fastmail.com> - 2016-06-12 14:46 -0400
Re: the global keyword: MRAB <python@mrabarnett.plus.com> - 2016-06-12 01:09 +0100
Re: the global keyword: Marcin Rak <mrak@sightlineinnovation.com> - 2016-06-11 17:13 -0700
Re: the global keyword: Ned Batchelder <ned@nedbatchelder.com> - 2016-06-11 20:41 -0700
Re: the global keyword: Random832 <random832@fastmail.com> - 2016-06-11 21:26 -0400
Re: the global keyword: Steven D'Aprano <steve@pearwood.info> - 2016-06-12 13:38 +1000
Re: the global keyword: Ned Batchelder <ned@nedbatchelder.com> - 2016-06-11 20:48 -0700
Re: the global keyword: Marcin Rak <mrak@sightlineinnovation.com> - 2016-06-12 11:31 -0700
Re: the global keyword: BartC <bc@freeuk.com> - 2016-06-12 20:07 +0100
Re: the global keyword: Ned Batchelder <ned@nedbatchelder.com> - 2016-06-12 12:25 -0700
Re: the global keyword: BartC <bc@freeuk.com> - 2016-06-12 22:10 +0100
Re: the global keyword: Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-06-19 16:35 +0200
Re: the global keyword: BartC <bc@freeuk.com> - 2016-06-19 22:20 +0100
Re: the global keyword: Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-06-20 13:14 +0200
Re: the global keyword: Steven D'Aprano <steve@pearwood.info> - 2016-06-20 22:15 +1000
Re: the global keyword: Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-06-20 15:04 +0200
Re: the global keyword: Random832 <random832@fastmail.com> - 2016-06-20 09:29 -0400
Re: the global keyword: Steven D'Aprano <steve@pearwood.info> - 2016-06-21 00:53 +1000
Re: the global keyword: Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-06-21 10:08 +0200
Re: the global keyword: BartC <bc@freeuk.com> - 2016-06-21 11:41 +0100
Re: the global keyword: Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-06-21 13:01 +0200
Re: the global keyword: Joel Goldstick <joel.goldstick@gmail.com> - 2016-06-19 13:16 -0400
Re: the global keyword: Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-19 22:50 -0700
Re: the global keyword: BartC <bc@freeuk.com> - 2016-06-20 11:21 +0100
Re: the global keyword: Steven D'Aprano <steve@pearwood.info> - 2016-06-20 22:03 +1000
Re: the global keyword: Rick Johnson <rantingrickjohnson@gmail.com> - 2016-06-21 10:04 -0700
Re: the global keyword: Random832 <random832@fastmail.com> - 2016-06-21 13:15 -0400
Re: the global keyword: Rick Johnson <rantingrickjohnson@gmail.com> - 2016-06-21 15:20 -0700
Re: the global keyword: Chris Angelico <rosuav@gmail.com> - 2016-06-22 08:32 +1000
Re: the global keyword: Rick Johnson <rantingrickjohnson@gmail.com> - 2016-06-21 16:43 -0700
Re: the global keyword: BartC <bc@freeuk.com> - 2016-06-22 00:15 +0100
Re: the global keyword: Rick Johnson <rantingrickjohnson@gmail.com> - 2016-06-21 17:24 -0700
Re: the global keyword: BartC <bc@freeuk.com> - 2016-06-22 10:24 +0100
Re: the global keyword: Steven D'Aprano <steve@pearwood.info> - 2016-06-24 11:00 +1000
Re: the global keyword: Chris Angelico <rosuav@gmail.com> - 2016-06-24 11:19 +1000
Re: the global keyword: eryk sun <eryksun@gmail.com> - 2016-06-24 02:19 +0000
Re: the global keyword: Rick Johnson <rantingrickjohnson@gmail.com> - 2016-06-21 16:50 -0700
csiph-web