Add a note about the graph variable

It needs to be global and publicly available.  Some people reading the
tutorial may want to put it in its own function or the __main__
conditional, which won't work.
This commit is contained in:
Michael Penkov
2017-10-28 12:10:39 +02:00
parent 81738d796f
commit bf5f870304

View File

@ -105,6 +105,9 @@ To do this, it needs to know what data-flow you want to achieve, and you'll use
The `if __name__ == '__main__':` section is not required, unless you want to run it directly using the python
interpreter.
The name of the `graph` variable is arbitrary, but this variable must be global and available unconditionally.
Do not put it in its own function or in the `if __name__ == '__main__':` section.
Execute the job
:::::::::::::::