On 13 August 2010 17:59:01 UTC+1, Tony <tonyl7...@gmail.com> wrote:
> My script right now basically just reads from a csv file and puts it
> into a dictionary for me.  However, when I make my own csv file (just
> the same as any I have seen), it acts inconsistently.  For example,
> sometimes it starts at the second line and another time it kept
> starting at the end of the file.

Are you sure that the CSV rows are being read on a strange order? Or
are you surmising this from looking at the dictionary once the load is
complete?

If it's the latter, then perhaps the problem is that dictionaries are
un-ordered data structures. If you iterate over the items in a
dictionary, you'll see its entries in an arbitrary order.

-- 
Cheers,
Simon B.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to