[Python-Dev] Can Python implementations reject semantically invalid expressions?
Craig Citro
craigcitro at gmail.com
Fri Jul 2 19:13:05 CEST 2010
> "1/0" is much faster to type than "raise SomeError" and serves the same
> purpose sometimes for debugging purposes. Let's not forget that not
> all code is written for eternity :)
>
Doesn't "raise" do the same thing for just two extra characters?
I agree that not all code lives forever -- but I bet we all have
stories about "debugging code" living on a lot longer than it should
have. ;)
-cc
More information about the Python-Dev
mailing list