About some problem
Ethan Furman
ethan at stoneleaf.us
Fri Jan 3 16:17:53 EST 2014
More information about the Python-list mailing list
Fri Jan 3 16:17:53 EST 2014
- Previous message (by thread): About some problem
- Next message (by thread): About some problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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~
- Previous message (by thread): About some problem
- Next message (by thread): About some problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list