Path: csiph.com!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'assignment': 0.07; 'expressions': 0.07; 'although,': 0.09; 'forcing': 0.09; 'received:internal': 0.09; 'thu,': 0.15; 'bucket': 0.16; 'expressions?': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.44': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:compute4.internal': 0.16; 'received:messagingengine.com': 0.16; 'wrote:': 0.16; "shouldn't": 0.18; 'sep': 0.22; 'header:In-Reply-To:1': 0.24; 'idea': 0.28; "i'm": 0.30; 'functional': 0.32; "d'aprano": 0.33; 'steven': 0.33; 'asking': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'agree': 0.37; 'things': 0.38; 'received:66': 0.38; 'why': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'from:no real name:2**0': 0.60; 'header:Message-Id:1': 0.61 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=TfgMuRtH5y8r788JAGAHqqoalTA=; b=tszrZ/ moHKcUv/1pOWull5VRzR0G9K0eFHJQWLY8JmQK3Ox4BqP6mmhSbGBJr0uz749cQQ HpA388yq5Ax+Qul5gECRnQ6UiyhhKQL28+Mu6llsz0WtD5pXIkx6o4H4L7lYQtby RPIcLXk4H4AWPQUxZbl7yNImaN36vOio++3qY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=TfgMuRtH5y8r788 JAGAHqqoalTA=; b=L3OExyFlBS+1gIGXohowuZHYfp5AzvtpnuzI64VrUiENbCF MDkdAIuSgCBFUHCnJX1+cscFq7BoM9XEomSDCqThe3Yy+kqyZMfWVj1S1Y1erxjA Zp9G477E6JYKKkeQ94TUqtVGdf8LW7Fm2UWIMR7ipCbAL8ld/c7TeNw52Rlc= X-Sasl-Enc: UJFvWvvK9PejOsANvU7l8kSrpbZCpKMtBjpw0lqYX2lS 1441902711 From: random832@fastmail.us To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-c76b43ce Subject: Re: Python handles globals badly. Date: Thu, 10 Sep 2015 12:31:51 -0400 In-Reply-To: <55f1a8df$0$1660$c3e8da3$5496439d@news.astraweb.com> References: <86fa425b-d660-45ba-b0f7-3beebdec8e14@googlegroups.com> <55EE9EEC.1060907@rece.vub.ac.be> <55EEDD37.5090602@gmx.com> <55f072aa$0$1669$c3e8da3$5496439d@news.astraweb.com> <55f1a8df$0$1660$c3e8da3$5496439d@news.astraweb.com> 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441902714 news.xs4all.nl 23845 [2001:888:2000:d::a6]:47820 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 4649 X-Received-Body-CRC: 750199980 Xref: csiph.com comp.lang.python:96271 On Thu, Sep 10, 2015, at 11:59, Steven D'Aprano wrote: > Although, I'm not sure that I agree with the idea that "everything is an > expression". I think that's a category mistake, like asking for the speed > of dark[1], or for a bucket of cold. Some things are functional by > nature, > and other things are imperative; some may be both, but I don't think that > assignment is one. I think that assignment is imperative, not functional, > and forcing it to return a value is artificial. Why shouldn't imperative things be expressions? Why should all expressions return a value?