On 13 August 2010 17:59:01 UTC+1, Tony <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

