(side-)effects and ...
Ethan Furman
ethan at stoneleaf.us
Mon Jul 6 15:05:54 EDT 2015
On 07/05/2015 01:29 PM, Stefan Ram wrote:
> The function »datetime.datetime.now().time()« does not yield
> a value that is determined by the expression »time()«;
> instead its value can /differ/ between two calls even when the
> call »time()« does not differ. In mathematics, however, a
> call to a function that is given by a term such as »cos( 0 )«
> always has the /same/ value.
The input to time() is the result of datetime.datetime.now(); is it datetime.datetime.now() that is being influenced by the world.
--
~Ethan~
More information about the Python-list
mailing list