Re: Failing on string exceptions in 2.4

2007-06-14 Thread Fredrik Lundh
Stephen R Laniel wrote: > End goal being that string exceptions would cause > compilation to fail. A few times now, I've found myself > doing > > class SomeClass: > """docstring""" > pass > > raise SomeClass, "Some description" > > and I've gotten a weird compiler error about the constr

Re: Failing on string exceptions in 2.4

2007-06-14 Thread Gabriel Genellina
En Thu, 14 Jun 2007 18:45:08 -0300, Stephen R Laniel <[EMAIL PROTECTED]> escribió: > Reading the Python docs, it looks like string exceptions > will be a DeprecationWarning in Python 2.5. Is there any way > to make them so in 2.4? Now how about if I want to turn all > DeprecationWarnings into co

Failing on string exceptions in 2.4

2007-06-14 Thread Stephen R Laniel
Reading the Python docs, it looks like string exceptions will be a DeprecationWarning in Python 2.5. Is there any way to make them so in 2.4? Now how about if I want to turn all DeprecationWarnings into compile-time errors? Is there some way to do this? End goal being that string exceptions would