Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57103
| References | <33549834-2f27-47f3-abea-eb3486909dec@googlegroups.com> <mailman.1253.1382186251.18130.python-list@python.org> <ea2d79c5-e116-458f-a77c-700e748323e2@googlegroups.com> |
|---|---|
| Date | 2013-10-20 00:42 +1100 |
| Subject | Re: Error Testing |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1259.1382190142.18130.python-list@python.org> (permalink) |
On Sun, Oct 20, 2013 at 12:34 AM, Scott Novinger <scnovinger@gmail.com> wrote: > I read the link on Handling Exceptions. The first bit of code worked for my purposes. I was able to reduce my number of lines of code significantly and my program works! Thank you all for your help solving this problem! As you get accustomed to exception handling, you'll find that it's a really clean and easy way to... well, handle exceptional situations :) Tip: In quick throw-away scripts that are run from the command line, don't even bother catching most exceptions. Just let 'em happen if they want to happen... your script will terminate with an error message, and you can deal with it as a human. That saves you even more code! > My plan is to create several different programs that perform specific Algebraic operations. My boys are learning Algebra 2 and I thought it might be a fun way to help us all learn Algebra and programming together. Python seems to be a good language for learning how to program. It is an excellent language for that. It's also a great language for applications. It may not be the fastest in the world, but all computers wait at the same speed anyway... Just one thing: When you post here, please either don't use Google Groups, or follow the advice here: https://wiki.python.org/moin/GoogleGroupsPython Preferably, just avoid GG, as a number of people just filter those posts out. It's not an indictment of you as a person, but the majority of GG posts are, quite frankly, very annoying for the reasons set out in the wiki article. Hope to see you around more! ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Error Testing Scott Novinger <scnovinger@gmail.com> - 2013-10-19 05:23 -0700
Re: Error Testing Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-19 13:37 +0100
Re: Error Testing Scott Novinger <scnovinger@gmail.com> - 2013-10-19 06:34 -0700
Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 00:42 +1100
Re: Error Testing rusi <rustompmody@gmail.com> - 2013-10-19 09:22 -0700
Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 09:28 +1100
Re: Error Testing Ned Deily <nad@acm.org> - 2013-10-19 15:46 -0700
Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 10:02 +1100
Re: Error Testing Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-10-20 12:18 -0400
Re: Error Testing Ned Batchelder <ned@nedbatchelder.com> - 2013-10-19 08:44 -0400
Re: Error Testing Roy Smith <roy@panix.com> - 2013-10-19 08:57 -0400
Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 00:04 +1100
Re: Error Testing Ned Batchelder <ned@nedbatchelder.com> - 2013-10-19 09:07 -0400
Re: Error Testing Roy Smith <roy@panix.com> - 2013-10-19 09:09 -0400
Re: Error Testing Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-19 14:19 +0100
Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 00:01 +1100
Re: Error Testing David Robinow <drobinow@gmail.com> - 2013-10-19 14:08 -0400
Re: Error Testing Tim Chase <tim@thechases.com> - 2013-10-19 13:31 -0500
Re: Error Testing Terry Reedy <tjreedy@udel.edu> - 2013-10-19 15:50 -0400
What's wrong with Windows Command Prompt (was Re: Error Testing) Terry Reedy <tjreedy@udel.edu> - 2013-10-19 16:35 -0400
Re: What's wrong with Windows Command Prompt (was Re: Error Testing) Chris Angelico <rosuav@gmail.com> - 2013-10-20 09:15 +1100
Re: Error Testing Chris Angelico <rosuav@gmail.com> - 2013-10-20 09:20 +1100
Re: What's wrong with Windows Command Prompt (was Re: Error Testing) David Robinow <drobinow@gmail.com> - 2013-10-21 15:55 -0400
Re: What's wrong with Windows Command Prompt (was Re: Error Testing) Tim Chase <python.list@tim.thechases.com> - 2013-10-21 15:29 -0500
csiph-web