Hi,
I like python because it is compatible to old versions. That's way I think
string exceptions should not be deprecated.
I use string exceptions if the condition for an assertion is
to complex:
if foo and bar and i>10:
raise "if foo and bar i must not be greater than 10"
This way I can easily add "checkpoint s" to my code.
Is it too late to change this? Way not make this line
raise "..."
behave like this:
raise Exception("..." )
in the future?
I know that catching string exceptions and reading the
string is different from Exception("..." ). This could
become deprecated.
Please keep Python compatible to old versions.
Thomas Güttler
--
Thomas Güttler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
Spam Catcher: niemand.leerman n@thomas-guettler.de
Comment