Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'javascript,': 0.07; 'namespace': 0.09; 'script,': 0.09; 'def': 0.13; 'languages.': 0.15; ':-p': 0.16; 'binding,': 0.16; 'local.': 0.16; 'php)': 0.16; 'wrote:': 0.16; 'language': 0.19; '2015': 0.20; 'sep': 0.22; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'fri,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'specifically': 0.28; 'does,': 0.29; 'another': 0.32; 'statement': 0.32; 'received:google.com': 0.35; 'but': 0.36; 'keyword': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'thought': 0.37; 'things': 0.38; 'why': 0.39; 'does': 0.39; "didn't": 0.39; 'skip:e 20': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; '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:from:date:message-id:subject:to :content-type; bh=skKGzp7ymo1STplMxa/yt4F2ZIwapwZVO2cV22I+QYI=; b=B/6QhRWzOZMfHzhPjuEP4e+Ta/gAqV/3Wj0JO/2ZPlqqMFsyAaWZQrinVwZbElnMMY ukjOim1Bggy6IFi8POT7dLgN0fAIivNrj8om6Z2GJ8x7dh8uyCJiqKXEyeRShcdod4oq KQ8mVMVxFSiE9sVnn4xLX2PrFKyRQ0rR0VQAQEIZzqZ0unQrth11difky9OH17El6IUX jiABWGigTHnZyVp8sW1ED6MJ/euTw2rvzvBlIJnpxyT/t5pNZMFKxw9oRmi5Zi+uUpSk bdEws5f0V84Axjf2OtQyDEDHOHlP1HADAUGInBhkw60fdlJBXxG9kJq1+UTT2XLh6v87 LJGA== X-Received: by 10.13.204.81 with SMTP id o78mr2721514ywd.108.1441396154862; Fri, 04 Sep 2015 12:49:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <58e0d1b5-a7ca-4811-9926-fba1b7ede83f@googlegroups.com> References: <58e0d1b5-a7ca-4811-9926-fba1b7ede83f@googlegroups.com> From: Ian Kelly Date: Fri, 4 Sep 2015 13:48:35 -0600 Subject: Re: Python handles globals badly. To: Python Content-Type: text/plain; charset=UTF-8 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: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441396163 news.xs4all.nl 23805 [2001:888:2000:d::a6]:36523 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3585 X-Received-Body-CRC: 2766123546 Xref: csiph.com comp.lang.python:96029 On Fri, Sep 4, 2015 at 1:11 PM, wrote: > 6- "include" script statement (extending namespace to another script, like PHP) def include(filename): exec(open(filename).read()) > Last but not least: > Why does javascript, as sripting language too, need not such things like > a keyword "global". It also very powerful language with dynamic binding, OO, ... I thought you didn't want to talk about comparisons to other languages. :-P Javascript uses the same stupid system that Lua does, where *everything* is automatically global/nonlocal unless you specifically declare it as local.