[Python-Dev] Can Python implementations reject semantically invalid expressions? (original) (raw)
Craig Citro craigcitro at gmail.com
Fri Jul 2 19:13:05 CEST 2010
- Previous message: [Python-Dev] Can Python implementations reject semantically invalid expressions?
- Next message: [Python-Dev] Can Python implementations reject semantically invalid expressions?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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
- Previous message: [Python-Dev] Can Python implementations reject semantically invalid expressions?
- Next message: [Python-Dev] Can Python implementations reject semantically invalid expressions?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]