accesibility of the namespace

Petr Jakes petr at
Thu Mar 9 14:07:48 CET 2006

Ooooops. My keyboard (fingers) was faster than my mind :(
There is more than one "run-time changed variable" in the dictionary
and not all strings in the dictionary are formatted using % operator.
2:{2:(("Enter you choice"),("Your kredit= %3d" % (kredit)))},
4:{2:(("Your choice: %2s" % (keyboard)),("%-20s" % (actKeyboard)))}}

I do not know which variable(s) to use for the % operator in the time
of the call of the value (% formatted string) from the dictionary.

This is also the reason why the variable names are stored in the
dictionary with the strings.

Any other suggestions?
Petr Jakes

More information about the Python-list mailing list