Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: Question about math.pi is mutable Date: Mon, 09 Nov 2015 08:18:20 -0500 Organization: IISS Elusive Unicorn Lines: 29 Message-ID: References: <563eba85$0$1611$c3e8da3$5496439d@news.astraweb.com> <87ziyowy83.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 5RI2IVyCx1TN5ZYmWM505gnXOgMhWWTb7Z4i5ZFUB19g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'removes': 0.05; 'subject:Question': 0.05; 'used.': 0.05; 'objects,': 0.07; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'language,': 0.11; 'variables': 0.15; '"global"': 0.16; 'bucket': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'run.': 0.16; 'module,': 0.18; 'restrictions': 0.18; 'url:home': 0.18; 'language': 0.19; 'changes': 0.20; '2015': 0.20; 'changes,': 0.23; 'this:': 0.23; 'feature': 0.24; 'mon,': 0.24; 'module': 0.25; 'header:X-Complaints-To:1': 0.26; 'looks': 0.29; 'referenced': 0.29; 'environment': 0.29; "i'd": 0.31; 'compiled': 0.32; 'file': 0.34; 'previous': 0.34; 'could': 0.35; 'nov': 0.35; 'modules': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'available.': 0.37; 'charset:us-ascii': 0.37; 'anything': 0.38; 'files': 0.38; 'shared': 0.38; 'end': 0.39; 'application': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'your': 0.60; 'personally': 0.61; 'improved': 0.63; 'more': 0.63; 'recompile': 0.84; 'capability': 0.91; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-68-178-61.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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:98520 On Mon, 9 Nov 2015 00:11:58 +0000, BartC declaimed the following: >Yes, that it's more of a crazy language than it looks at first; I can >write a simple module like this: > >pass > >which looks like an empty module, yet for all I know will end up contain >hundreds of variables by the time it's run. > Yet, for those situations where one needs shared "global" objects, having a bucket module just for this purpose may be the solution (though I'd personally think the design of the application could be improved to make it less arbitrary). It is a capability of the language, and anything that removes that feature risks breaking existing applications. It might make it into Python 4000... Also remember that compiled module files (PYC) don't know in what environment they will be used. Your restrictions may force the system to recompile EVERY Python module referenced whenever the main program file changes, even if the modules have had no changes and the previous PYC file is available. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/