Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63087
| Date | 2014-01-03 13:17 -0800 |
|---|---|
| From | Ethan Furman <ethan@stoneleaf.us> |
| Subject | Re: About some problem |
| References | (4 earlier) <CAJ+TeocR3HOrs-Unq7LDaPnbrVRFLVyGn7TPPy=gMmh0diB3OQ@mail.gmail.com> <mailman.4806.1388690867.18130.python-list@python.org> <52c5fb00$0$29981$c3e8da3$5496439d@news.astraweb.com> <5838476.4I4dOAImpA@news.perlig.de> <52c723bc$0$29982$c3e8da3$5496439d@news.astraweb.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4869.1388785310.18130.python-list@python.org> (permalink) |
On 01/03/2014 12:55 PM, Steven D'Aprano wrote: > André Malo wrote: > >> * Steven D'Aprano wrote: >> >>> Mark Lawrence wrote: >>> >>>> raise "Not Valid DB Type" >>>> >>>> is perfectly valid in Python 2. >>> >>> Actually, no it isn't. It's only valid up to Python 2.4. In Python 2.5, >>> string exceptions display a warning but continue to work, and in Python >>> 2.6 they generate a compile-time SyntaxError. >> >> Oh? Doesn't look like it. > > Oh, it's a runtime TypeError, not SyntaxError. The main point being that in 2.6 and 2.7 string exceptions do /not/ work. -- ~Ethan~
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: About some problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-02 19:27 +0000
Re: About some problem Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-03 10:49 +1100
Re: About some problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-03 01:14 +0000
Re: About some problem Ethan Furman <ethan@stoneleaf.us> - 2014-01-02 20:18 -0800
Re: About some problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-03 04:46 +0000
Re: About some problem André Malo <ndparker@gmail.com> - 2014-01-03 21:28 +0100
Re: About some problem Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-04 07:55 +1100
Re: About some problem Ethan Furman <ethan@stoneleaf.us> - 2014-01-03 13:17 -0800
csiph-web