problem with dictionaries
__peter__ at web.de
Wed Apr 23 13:56:51 CEST 2008
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.
More information about the Python-list