[Python-3000] raise with traceback? (original) (raw)
Terry Reedy tjreedy at udel.edu
Sun Aug 20 18:08:55 CEST 2006
- Previous message: [Python-3000] raise with traceback?
- Next message: [Python-3000] raise with traceback?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Guido van Rossum" <guido at python.org> wrote in message news:ca471dc20608200853i318d1051kc8cc8cfff1b7eb0a at mail.gmail.com...
I wonder if "raise ValueError" should still be allowed (as equivalent to "raise ValueError()") or that it should be disallowed.
+1 for disallow.
raise is a simple rule to remember.
Having VE == VE() in certain contexts is/would be like haveing s.len == s.len() or func == func() (a moderately frequent newbie request) in certain contexts.
Plus, why encourage less-helpful, no message exceptions ;-)
Terry Jan Reedy
- Previous message: [Python-3000] raise with traceback?
- Next message: [Python-3000] raise with traceback?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]