About some problem

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Jan 2 20:14:02 EST 2014


On 02/01/2014 23:49, 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.
>

Thaanks for the correction.

> You know how the world ended when Python 2.6 broke backwards compatibility
> and split the Python community into two? No, me neither.
>

I'm 100% certain that you're wrong on this one, the split was simply 
never noticed by anybody :)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list