X-Git-Url: https://jxself.org/git/?p=ibg.git;a=blobdiff_plain;f=chapters%2F04.rst;h=46e18588350b7648d997a0dbe8f443f8896765e9;hp=51454ab03789013076bbef43215268f9245c1796;hb=4381288eeb792adb3672ef747013c02815fa760a;hpb=4261ff48a6357e2af0957f5e1b88bdc022243d16 diff --git a/chapters/04.rst b/chapters/04.rst index 51454ab..46e1858 100644 --- a/chapters/04.rst +++ b/chapters/04.rst @@ -68,6 +68,10 @@ but you can change it at any time. For example, we used the statement:: location = before_cottage; +.. Generated by autoindex +.. index:: + pair: location; library variable + to reset the value of the :var:`location` variable to the ``before_cottage`` object, and we wrote:: @@ -435,6 +439,10 @@ into individual words, which it then looks up in the dictionary. If it finds all the words, and they seem to represent a sensible course of action, that's what happens next. +.. Generated by autoindex +.. index:: + pair: name; library property + So far, we've seen dictionary words used as the values of an object :prop:`name` property:: @@ -487,6 +495,10 @@ interpreter executes that statement: it performs an assignment:: deadflag = 2; +.. Generated by autoindex +.. index:: + pair: deadflag; library variable + which changes the value of the library variable :var:`deadflag` from its current value to 2. Incidentally, ``if`` statements are often written on two lines, with the "controlled" statement indented. This makes it