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


Groups > comp.lang.python > #93515

Re: (side-)effects and ...

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.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; 'python,': 0.02; 'modify': 0.04; '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; 'missed': 0.15; 'mathematics': 0.15; 'expressions?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'well-known': 0.16; 'wrote:': 0.16; 'stefan': 0.18; 'variables': 0.18; 'ron': 0.22; 'cheers,': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'url:wikipedia': 0.29; 'environment': 0.29; 'url:wiki': 0.30; 'maybe': 0.31; 'common': 0.33; 'ram': 0.33; 'changed': 0.35; 'to:addr:python-list': 0.35; 'something': 0.35; "isn't": 0.35; 'but': 0.36; 'url:org': 0.36; 'there': 0.36; 'so,': 0.37; 'should': 0.37; 'world,': 0.38; 'received:org': 0.38; 'pm,': 0.39; 'url:en': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'why': 0.40; 'term': 0.60; 'learn': 0.60; 'world': 0.64; 'url:%1': 0.66; 'url:%28': 0.66; 'url:%29': 0.66; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'reply-to:addr:gmail.com': 0.77; 'influencing': 0.84; 'phenomenon': 0.84; 'subject: ...': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ron Adam <ron3200@gmail.com>
Subject Re: (side-)effects and ...
Date Sun, 05 Jul 2015 22:50:56 -0400
References <effects-20150705220525@ram.dialup.fu-berlin.de>
Reply-To ron3200@gmail.com
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host ip98-170-222-146.pn.at.cox.net
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
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.311.1436151072.3674.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1436151072 news.xs4all.nl 2827 [2001:888:2000:d::a6]:34695
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3772
X-Received-Body-CRC 3176792189
Xref csiph.com comp.lang.python:93515

Show key headers only | View raw



On 07/05/2015 04:29 PM, Stefan Ram wrote:

>    But why do we not have a common and well-known term for
>    the counterpart, that something does not modify the state
>    of the world, but that the state of the world does
>    influence the value (behaviour) of a call such as
>    »datetime.datetime.now().time()«?
>
>    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?

Variables that are changed from an outside environment are "Volatile".

https://en.wikipedia.org/wiki/Volatile_%28computer_programming%29

It isn't used in python, though I think maybe it should be.

Cheers,
    Ron

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


Thread

Re: (side-)effects and ... Ron Adam <ron3200@gmail.com> - 2015-07-05 22:50 -0400

csiph-web