Re: accesibility of the namespace

2006-03-09 Thread Mikael Olofsson
Petr Jakes wrote: > Ops. My keyboard (fingers) was faster than my mind :( > So > There is more than one "run-time changed variable" in the dictionary > and not all strings in the dictionary are formatted using % operator. > Example: > lcd={ > 2:{2:(("Enter you choice"),("Your kredit= %3d" %

Re: accesibility of the namespace

2006-03-09 Thread Petr Jakes
Ops. My keyboard (fingers) was faster than my mind :( So There is more than one "run-time changed variable" in the dictionary and not all strings in the dictionary are formatted using % operator. Example: lcd={ 2:{2:(("Enter you choice"),("Your kredit= %3d" % (kredit)))}, 4:{2:(("Your choic

Re: accesibility of the namespace

2006-03-09 Thread Petr Jakes
Thanks Steven, credit is mentioned to be a calculated value changed at run-time and your "third hand" suggestion is exactly what I was looking for. Petr Jakes -- http://mail.python.org/mailman/listinfo/python-list

Re: accesibility of the namespace

2006-03-09 Thread Steven D'Aprano
On Thu, 09 Mar 2006 01:42:55 -0800, Petr Jakes wrote: > In my code I have relatively wide dictionary definition (about 100 > rows). > > I would like to put it in to the different file (module) because of the > main code readability (say the name of the file will be > "my_dictionary.py") > > In t

accesibility of the namespace

2006-03-09 Thread Petr Jakes
In my code I have relatively wide dictionary definition (about 100 rows). I would like to put it in to the different file (module) because of the main code readability (say the name of the file will be "my_dictionary.py") In the dictionary I have strings formatted using % operator like: lcd={2:"Y