Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93512

Re: (side-)effects and ...

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'namespace': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'term,': 0.09; 'python': 0.11; 'jan': 0.11; 'def': 0.14; 'missed': 0.15; 'mathematics': 0.15; 'expressions?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.16; 'stefan': 0.18; 'defined': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'terry': 0.29; '(which': 0.29; 'maybe': 0.31; 'ram': 0.33; 'to:addr:python-list': 0.35; 'but': 0.36; 'there': 0.36; 'so,': 0.37; 'received:org': 0.38; 'pm,': 0.39; 'to:addr:python.org': 0.39; 'term': 0.60; 'learn': 0.60; 'skip:n 10': 0.63; 'world': 0.64; 'here': 0.66; '4:29': 0.84; 'influencing': 0.84; 'phenomenon': 0.84; 'subject: ...': 0.84; 'received:fios.verizon.net': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: (side-)effects and ...
Date Sun, 5 Jul 2015 19:12:40 -0400
References <effects-20150705220525@ram.dialup.fu-berlin.de>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-98-114-97-173.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1
In-Reply-To <effects-20150705220525@ram.dialup.fu-berlin.de>
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.308.1436137983.3674.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1436137983 news.xs4all.nl 2892 [2001:888:2000:d::a6]:33612
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:93512

Show key headers only | View raw


On 7/5/2015 4:29 PM, Stefan Ram wrote:

>    And this is the intention of my post: Maybe there is such
>    a term, and I just missed to learn it so far? So,
>    do you know a term for the phenomenon that can be found
>    in Python but not in mathematics and consists in the state
>    of the world influencing the value of an expressions?

non-determinate
state-dependent

In mathematics, 'pure' functions defined in terms of named functions, 
such as

def f(x): return exp(sin(2*pi*x) + cos(2*pi*x))

are actually namespace dependent, but this is not counted as the local 
namespace (which here must contain exp, pi, sin, and cos) is considered 
to be write-once, read-forever.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: (side-)effects and ... Terry Reedy <tjreedy@udel.edu> - 2015-07-05 19:12 -0400

csiph-web