Re: [Tutor] List of Classes with a dictionary within the Class.

2011-09-21 Thread Mukund Chavan
That worked. Thank you for the explanation. I was trying to take a list of these objects and insert it as a part of a mongo document using the pymongo package. But based on what your input and little more reading up, I can use the "__dict__" method to accomplish the same. Thanks again. - M

Re: [Tutor] List of Classes with a dictionary within the Class.

2011-09-21 Thread Steven D'Aprano
Mukund Chavan wrote: Hi, I was trying to get a list of Class Objects. The Class itself has string fields and a dictionary that is initialized as a part of the "__init__" No it doesn't. It has a dictionary that is initialised *once*, when the class is defined. From that point on, every instan

Re: [Tutor] quick data structures question

2011-09-21 Thread Steven D'Aprano
Fred G wrote: Hey guys, I want to write a short script that takes from an input excel file w/ a bunch of rows and columns. The two columns I'm interested in are "high gains" and "genes." I want the user to write: Which genes are associated with gains over 20%? Depending on your requiremen

[Tutor] List of Classes with a dictionary within the Class.

2011-09-21 Thread Mukund Chavan
Hi, I was trying to get a list of Class Objects. The Class itself has string fields and a dictionary that is initialized as a part of the "__init__" However the fields of the dictionary for each object in the list of class objects seems to be the same. I took an example from the following sit

Re: [Tutor] Running .py files in shell

2011-09-21 Thread Robert Layne
Well everybody, sorry for the incomplete sentences and overall poor English but I wanted to make this simple to read and understand for someone who is completely inexperienced in any sort of programming, as I am (very first day messing with this stuff, e.g., terminal). This is the result of hou