[Tutor] Design Question

2007-06-01 Thread dsh0105
I think I may have sent an incomplete version of this question a moment ago (sorry). Here is the complete question: I'm designing something along the lines of a flash card program. It's mostly just an exercise in learning Python, but I'd like it to be at least marginally usable when I'm done. S

[Tutor] Design Question...

2007-06-01 Thread dsh0105
I'm doing the initial design for what will (hopefully) be something like a flash-card system. This is mostly a learning exercise, but I'm hoping the results will be at least usable. So my question is does this class design shown by the psudo-code below sound reasonable? class Deck(Questions):

[Tutor] Learning to Debug?

2007-05-16 Thread dsh0105
I'm moving forward with my learning of Python, but I've decided it's finally time to address a problem that has haunted me in every language I've every tried to learn: debugging. I'm just not very good at it. Does anyone have recommendations for Python-centric books/online tutorials that teach

[Tutor] Newbie Question on Exceptions...

2007-05-08 Thread dsh0105
I'm working my way through the book "beginning python" and I came across an exercise that suggests using Exception trapping to see if a value is in a dictionary: fridge={"apple":"A shiny red apple","pear":"a nice ripe pear","grapes":"seadless grapes"} food_sought="apple" fridge_list=fridge.keys