Re: list.index crashes when the element is not found

2008-05-02 Thread Nick J Chackowsky
TkNeo wrote: On May 2, 1:58 pm, Nick J Chackowsky <[EMAIL PROTECTED]> wrote: TkNeo wrote: WHAT ? This is crazy Crazy like a fox? a = [1, 2, 3] try: a.index(99) except: a.append(99) finally: print a.index(99) MY question: which exception should I actually be catching

Re: list.index crashes when the element is not found

2008-05-02 Thread Nick J Chackowsky
TkNeo wrote: WHAT ? This is crazy Crazy like a fox? a = [1, 2, 3] try: a.index(99) except: a.append(99) finally: print a.index(99) MY question: which exception should I actually be catching there? ** Posted from http://www.teranews.com ** -- http://mail.python.org/mailman/listinf

Re: Python in High School

2008-04-02 Thread Nick J Chackowsky
sprad wrote: > I'm a high school computer teacher, and I'm starting a series of > programming courses next year (disguised as "game development" classes > to capture more interest). The first year will be a gentle > introduction to programming, leading to two more years of advanced > topics. > I

Re: HI all

2008-01-30 Thread Nick J Chackowsky
[EMAIL PROTECTED] wrote: > I am shravan tiwari, i want to know that how i'll run any python > file(*.py) on command prompt r python GUI. > i tried this > > python test.py > > but i have got error, syntax error. so can i get the solution. I'm thinking you're running on a Windows computer, and that

Re: Python IDE

2007-11-03 Thread Nick J Chackowsky
Simon Pickles wrote: > Hi, > > I have recently moved from Windows XP to Ubuntu Gutsy. > > I need a Python IDE and debugger, but have yet to find one as good as > Pyscripter for Windows. Can anyone recommend anything? What are you all > using? > > Coming from a Visual Studio background, editing