[Tutor] What exactly is "state"?

Joel Goldstick joel.goldstick at gmail.com
Mon Mar 2 18:23:50 CET 2015


On Mon, Mar 2, 2015 at 11:25 AM, Sydney Shall <s.shall at virginmedia.com> wrote:
> I am a beginner and I am now at the strage of learning to write unittests.
> I have followed the current discussion entitled "How to test a class in
> pyhton", and I am not clear precisely what is meant by state. In its common
> meaning I can see some relevance. But is there a technical aspect to the
> notion. I see it mentioned often and feel rather uncomfortable that I know
> so little about it.
> I have deliberately started a new thread.
> Thanks.
> --
> Sydney
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

'State' is the present value of all variables related to the code that
is running.  Often code execution is dependent on the present state to
determine the path of execution.

-- 
Joel Goldstick
http://joelgoldstick.com


More information about the Tutor mailing list