Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: Question about math.pi is mutable Date: Sun, 8 Nov 2015 12:51:03 -0700 Lines: 20 Message-ID: References: <87d1vlzy4p.fsf@elektro.pacujo.net> <878u69zxww.fsf@elektro.pacujo.net> <563eba85$0$1611$c3e8da3$5496439d@news.astraweb.com> <87ziyowy83.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de liSqzi/Fq8uoY48VRQ+Nvg7Ca0EgCcwKdLkmIUyJAHpA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'needed,': 0.05; 'subject:Question': 0.05; '"a"': 0.09; 'example:': 0.10; 'def': 0.13; 'file,': 0.15; '"b"': 0.16; 'attributes,': 0.16; 'globals.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'runtime.': 0.16; 'wrote:': 0.16; '>': 0.18; '2015': 0.20; 'header:In- Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'code:': 0.29; 'table': 0.32; 'class': 0.33; 'source': 0.33; 'ones,': 0.33; 'surely': 0.33; 'received:google.com': 0.35; 'nov': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'skip:& 10': 0.37; 'say': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'names': 0.38; 'stuff': 0.38; 'to:addr:python.org': 0.40; 'some': 0.40; 'different': 0.63; 'other.': 0.64; 'potentially': 0.67; 'skip:\xc2 10': 0.67; '8bit%:100': 0.70; 'to:name:python': 0.84 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:to :content-type; bh=GT5FCwIsB6KuwBq6zVI8vQAl/qNzy3MeLerYZoxCPuE=; b=fUWpGr+ieNVOprrhRhr0Th33ySUMSPokNC38sVe6+ub5P2YOZ1InboTJosNzjYbJOi B2vtAbS4JlaQdJ9/KGnllMUE7Ee00Up8cRluRuoQAkqBu1EuTL7ZT+9n8Hj9xAkC9yjW vCtJ7iIxLNbU6kdIwxcbzvjm9+CgAl1yxD8plX8qTvSZF4gADX0ZZ6AaDEoucGfJZZk7 dazR7mrljakqzjHbfikrEzNYdPQokZeXZ7IuruJ78lzVcnTP5oInysA38PNIxGiyyETZ r7VhjJIs3g7t+4ZVC2QnbCwmSTNxsXNll79tsbqJSuEmi+TIW1eoMlKnjaar9mo4Ltd2 OZgQ== X-Received: by 10.50.136.132 with SMTP id qa4mr17238134igb.68.1447012263930; Sun, 08 Nov 2015 11:51:03 -0800 (PST) In-Reply-To: X-Content-Filtered-By: Mailman/MimeDel 2.1.20+ 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:98474 On Nov 8, 2015 12:01 PM, "BartC" wrote: > > But then, you say that additional attributes, potentially millions of different ones, can be invented at runtime. Although I don't see how it can remove names that are part of the source code: if "A.B" is in the file, then surely "A" and "B" always have to be present in some table or other. Gratuitous example: def factory(name): class inner: # stuff inner.__name__ = name return inner One = factory('One') Two = factory('Two') # factory is no longer needed, so remove it from globals. del factory