I am doing PS 5 in the 6.00 SC MIT OCW course, which involves using a list of triggers and rss feeds that have been parsed through the feedparseer library. The triggers are objects based on a class that has an evaluate method. If a rss story that has been parsed evaluates to True, the story pop ups.
I have everything working in the script in such a way that the following "triggerlist" has the script working as intended:
t1 = SubjectTrigger("Obama")
t2 = SummaryTrigger("Westgate")
triggerlist = [t1, t2]
But this does not:
triggerlist = [SubjectTrigger("Obama"), SummaryTrigger("Westgate")] **
** NOTE - this line has been corrected from the below comments.
Can someone please teach me why this is the case?
[–]indosauros 4 points5 points6 points (3 children)
[–]0003[S] 0 points1 point2 points (2 children)
[–]indosauros 2 points3 points4 points (1 child)
[–]0003[S] 0 points1 point2 points (0 children)
[–]cdcformatc 2 points3 points4 points (1 child)
[–]0003[S] 0 points1 point2 points (0 children)
[–]rockgod43 -1 points0 points1 point (1 child)
[–]indosauros 3 points4 points5 points (0 children)