Simon Strobl wrote: > the idea of the following program is to parse a frequency list of the > form FREQUENCY|WORD, to store the frequency of a word in a dictionary > (and to do some things with this information later). > > I have done this many many times. Suddenly, it does not work any more: > The value frq[key] is different from the value that key has in the > file 'my_frqlist.txt'. > > I am using Python 2.5.1 > > Any hints?
The code looks OK. You probably have python reading a my_frqlist.txt that differs from the one you are looking at. Peter -- http://mail.python.org/mailman/listinfo/python-list