Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Antoon Pardon Newsgroups: comp.lang.python Subject: Re: static variables Date: Wed, 02 Dec 2015 11:56:45 +0100 Lines: 14 Message-ID: References: <565cf163$0$1612$c3e8da3$5496439d@news.astraweb.com> <565e4329$0$1612$c3e8da3$5496439d@news.astraweb.com> <565e4861$0$1587$c3e8da3$5496439d@news.astraweb.com> <565EAA1D.501@rece.vub.ac.be> <87a8ptcfvz.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de pj70v2sX5kdUaMqlTf8LxQKfd63TiLHHmQQZtgAFqZjg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'received:134': 0.05; 'def': 0.13; 'foo()': 0.16; 'received:ac.be': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'changes': 0.20; 'variables.': 0.22; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'received:be': 0.30; 'problem': 0.33; 'problem.': 0.35; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'being': 0.37; 'seem': 0.37; 'why': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'pardon': 0.84; 'schreef': 0.84 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AigGANnNXlaGuA9G/2dsb2JhbABehFYBJb5mCoEUhg4CghsBAQEBAQGFQAEBBCNVEQsaAgUWCwICCQMCAQIBRRMGAgKIK64kjH2EBQEBCAIhgQGFU4R9hSeCToFEBZZcjTuJEZNZY4QFcQGFbgEBAQ User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.8.0 In-Reply-To: <87a8ptcfvz.fsf@elektro.pacujo.net> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99867 Op 02-12-15 om 11:18 schreef Marko Rauhamaa: > Antoon Pardon : > >> def foo() >> foo.attr >> >> changes nothing about foo.attr being globally accessible. > I don't know why global accessibility is such a problem. Some people seem to have a problem with global variables. -- Antoon.