Re: [Tutor] Read a file, Load a dictionary

2014-07-29 Thread Alan Gauld
On 25/07/14 02:58, Deb Wyatt wrote: assuming you're using version 3.5 How do you get version 3.5? Python.org shows 3.41 as being the latest. You download the source code and build from scratch. Its not really recommended for normal use yet - its still in development. -- Alan G Author

Re: [Tutor] Read a file, Load a dictionary

2014-07-25 Thread Steven D'Aprano
On Fri, Jul 25, 2014 at 07:15:38AM +0100, Alan Gauld wrote: > On 25/07/14 04:00, Steven D'Aprano wrote: > > >>3.5 is a dev version. Not for production nor for learning python > >> one gets it by fetching from the repository and doing their own > >> compile. > > > >Do you figure that many beginn

Re: [Tutor] Read a file, Load a dictionary

2014-07-24 Thread Alan Gauld
On 25/07/14 04:00, Steven D'Aprano wrote: 3.5 is a dev version. Not for production nor for learning python one gets it by fetching from the repository and doing their own compile. Do you figure that many beginners to Python are doing that? I think Dave was being a bit tongue in cheek. H

Re: [Tutor] Read a file, Load a dictionary

2014-07-24 Thread Steven D'Aprano
On Thu, Jul 24, 2014 at 10:25:59PM -0400, Dave Angel wrote: > Deb Wyatt Wrote in message: > >> assuming you're using version 3.5 > > > > How do you get version 3.5? Python.org shows 3.41 as being the latest. > > I could as easily figured 2.6. My point is that people need to > specify what v

Re: [Tutor] Read a file, Load a dictionary

2014-07-24 Thread Dave Angel
Deb Wyatt Wrote in message: > assuming you're >> using version 3.5 >> > > How do you get version 3.5? Python.org shows 3.41 as being the latest. > > I could as easily figured 2.6. My point is that people need to specify what version they're asking about. 3.5 is a dev version. Not for

Re: [Tutor] Read a file, Load a dictionary

2014-07-24 Thread Deb Wyatt
assuming you're > using version 3.5 > How do you get version 3.5? Python.org shows 3.41 as being the latest. Deb in WA, USA FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.c

Re: [Tutor] Read a file, Load a dictionary

2014-07-24 Thread Dave Angel
Glenn Lester Wrote in message: > ? You forgot to make your message a text one, and also omitted your Python version. So I'll respond from memory, assuming you're using version 3.5 The csv reader can make a dictionary from each line of the csv file. So you can readily make a list o

Re: [Tutor] Read a file, Load a dictionary

2014-07-24 Thread Emile van Sebille
On 7/24/2014 3:50 PM, Glenn Lester wrote: I have been looking around for a way to read a comma delimited csv file start with the csv module. http://www.python.org/doc/current/lib/module-csv.html DESCRIPTION This module provides classes that assist in the reading and writing of Co

[Tutor] Read a file, Load a dictionary

2014-07-24 Thread Glenn Lester
I have been looking around for a way to read a comma delimited csv file and then load it into a dictionary. So far any of my usual sources don't deal with such simple stuff. My current code is # create a dictionary (dict) to store the order # and Remark testVariables = {} # Read the file an