self question

Schüle Daniel uval at rz.uni-karlsruhe.de
Tue Jul 25 14:10:41 EDT 2006


correction :)

> class Graph:
>     settings = {
>         "NumNodes" : 10,
>         "MinNodes" : 2,
>         "MaxNodes" : 5
>     }
>     def randomizeEdges(self,
>         lowhigh = (settings["MinNodes"], settings["MaxNodes"])):

of course this should be
  Graph.settings["MinNodes"], Graph.settings["MaxNodes"])



More information about the Python-list mailing list