Re: file tell in a for-loop

2008-11-19 Thread Magdoll
Gotcha. Thanks! Magdoll On Nov 19, 2:57 am, Tim Chase <[EMAIL PROTECTED]> wrote: > Magdoll wrote: > > I was trying to map various locations in a file to a dictionary. At > > first I read through the file using a for-loop, buttell() gave back > > weird results, so I switched to while, then it work

Re: file tell in a for-loop

2008-11-19 Thread Tim Chase
Magdoll wrote: I was trying to map various locations in a file to a dictionary. At first I read through the file using a for-loop, but tell() gave back weird results, so I switched to while, then it worked. The for-loop version was something like: d = {} for line

Re: file tell in a for-loop

2008-11-18 Thread Justin Ezequiel
On Nov 19, 7:00 am, Magdoll <[EMAIL PROTECTED]> wrote: > I was trying to map various locations in a file to a dictionary. At > first I read through the file using a for-loop, but tell() gave back > weird results, so I switched to while, then it worked. > > The for-loop version was something like: >