Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96029
| 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 | <ian.g.kelly@gmail.com> |
| 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 | <c3363$547e74fe$5419aafe$24179@news.ziggo.nl> <58e0d1b5-a7ca-4811-9926-fba1b7ede83f@googlegroups.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Fri, 4 Sep 2015 13:48:35 -0600 |
| Subject | Re: Python handles globals badly. |
| To | Python <python-list@python.org> |
| 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 <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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.146.1441396163.8327.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Fri, Sep 4, 2015 at 1:11 PM, <tdev@freenet.de> 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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Python handles globals badly. tdev@freenet.de - 2015-09-04 12:11 -0700
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-04 13:48 -0600
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-04 13:52 -0600
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-05 10:27 +1000
Re: Python handles globals badly. Michael Torrie <torriem@gmail.com> - 2015-09-04 19:42 -0600
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-05 11:54 +1000
Program in or into (was Python handles globals badly) Rustom Mody <rustompmody@gmail.com> - 2015-09-04 20:18 -0700
Re: Program in or into (was Python handles globals badly) Chris Angelico <rosuav@gmail.com> - 2015-09-05 13:31 +1000
Re: Program in or into (was Python handles globals badly) Steven D'Aprano <steve@pearwood.info> - 2015-09-06 12:35 +1000
Re: Program in or into (was Python handles globals badly) MRAB <python@mrabarnett.plus.com> - 2015-09-06 03:54 +0100
Re: Program in or into (was Python handles globals badly) Rustom Mody <rustompmody@gmail.com> - 2015-09-05 21:35 -0700
Re: Program in or into (was Python handles globals badly) random832@fastmail.us - 2015-09-06 01:26 -0400
Re: Program in or into (was Python handles globals badly) wxjmfauth@gmail.com - 2015-09-06 00:42 -0700
Re: Program in or into (was Python handles globals badly) Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-06 18:19 -0600
csiph-web