Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 12 Online
OpenStudy (anonymous):

On problem set 5 and IDLE keeps crashing due to the last few lines of code in the skeleton file. Anyone know how to fix this? This is for course 6.00 Introduction to Computer Science, Spring 2011 btw.

OpenStudy (anonymous):

"Unhandled exception in thread started by <function main_thread at 0x231e8b0>" is this what you're getting in IDLE?

OpenStudy (anonymous):

@simmoleon - did you get past this

OpenStudy (anonymous):

No, unfortunately I did not. I have a feeling it has something to do with version incompatibility or outdated code. I skipped to the next problem set.

OpenStudy (anonymous):

did you have all your Trigger subclasses implemented?

OpenStudy (anonymous):

I don't know if I should start a new question or hi-jack this one but I have not been able to get problem set 5 skeleton code to work. Has anyone figured out what's wrong?

OpenStudy (anonymous):

@codeXY I remember that happening. I think it had to do with having all the Trigger classes implemented or maybe having valid triggers.

OpenStudy (anonymous):

@bwCA do you still have a working copy of the skeleton code for this problem set? I'm not sure what you mean by "Trigger classes implemented" or "valid triggers"

OpenStudy (anonymous):

@codeXY This is the RSS news feed problem right? the first set of problems are to implement a bunch of classes the way the rss reader works is to use triggers to search the news services the triggers are words, phrases, subjects, titles .... and combinations of those if a trigger is specified for a Trigger class that has not been implemented then an exception occurs I am assuming that is what you all are getting. I have a working copy. It is a tad different because it is the edX version of the problem but the parts that we are supposed todo are the same. http://dpaste.com/1336989/

OpenStudy (anonymous):

@bwCA Yes I'm referring to the RSS news feed problem. I actually didn't even read the problem set instructions yet, I just became aware of the flaw in the skeleton code because of this post and then I ran the skeleton to verify. I actually see now what you mean by Triggers. So I take it that I won't be able to copy and paste your code directly into IDLE right? Maybe I can find the solution by comparing your code with the original skeleton code.

OpenStudy (anonymous):

So I'm working on this skeleton code and I'm getting syntax error after syntax error and they're all in the feedparser.py file. I'm curious which version of python is this supposed to be compatible for? The two that I have installed on my computer are 3.3.1 and 2.5.4 and the files for Problem Set 5 are not working on either of them.

OpenStudy (anonymous):

I am using 2.7.5. I copied all of the stuff i wrote for the edX problem into the 6.00sc skeleton and it worked - I had to make a minor tweak, the NewStory class method names were different .....i.e. get_title vs getTitle

OpenStudy (anonymous):

@bwCA I was trying to figure out why you did not need to include the __init__ in TitleTrigger, SubjectTrigger and SummaryTrigger in your solution: http://dpaste.com/1342754/ is it because those are subclasses and it inherits the initialized state from WordTrigger? (if I need to start a new thread just let me know)

OpenStudy (anonymous):

yep, the subclass inherits everything from its super-class or base class in the subclass you don't hae any (written) references to the base class methods unless you want to override or extend a method. here is an example of extending a method - http://dpaste.com/1343031/ lots of good stuff in section 9 of the Tutorial, 9.5 describes inheritance, I often go back and read parts of this section. http://docs.python.org/2.7/tutorial/classes.html

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!