Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104944
| From | Ganesh Pal <ganesh1pal@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: common mistakes in this simple program |
| Date | 2016-03-15 21:26 +0530 |
| Message-ID | <mailman.163.1458057381.12893.python-list@python.org> (permalink) |
| References | (3 earlier) <CALwzidn8-HDrGSqZT2ODxhdNYL7yFt5hdmC8RnB4WC=gkD4Wtg@mail.gmail.com> <CACT3xuVxn+XuEa3xLNb+9wQ74cNWUZ8J3nmbkjKAtgq58gkLEg@mail.gmail.com> <CAPTjJmoASZBv9WKSHcSZM1CikzE0B=OJXVL1uHzNzdBmjF+uUQ@mail.gmail.com> <CACT3xuUoZ1+giS=6BaGGBkyJkZpuVw4DYMEw4-c4yhnM7U4DWg@mail.gmail.com> <alpine.LSU.2.11.1602291201540.2025@znpeba.jbaqresebt.arg> |
On Tue, Mar 1, 2016 at 2:41 AM, Martin A. Brown <martin@linux-ip.net> wrote: > Please read below. I will take a stab at explaining the gaps of > understanding you seem to have (others have tried already, but I'll > try, as well). > > I am going to give you four different functions which demonstrate > how to use exceptions. You may find it instructive to paste these > functions into an interactive Python shell and try them out, as > well. > Thanks Martin for beautifully demonstrating the use of exception with an example that's easy to understand. Step 1: catch a specific Exception Step 2: catch a specific Exception Step 3: catch several different classes of Exception Step 4: catch many different classes of Exception
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: common mistakes in this simple program Ganesh Pal <ganesh1pal@gmail.com> - 2016-03-15 21:26 +0530
csiph-web