summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'DEVELOPING')
-rw-r--r--DEVELOPING12
1 files changed, 12 insertions, 0 deletions
diff --git a/DEVELOPING b/DEVELOPING
index cd9f78f9..8286a8bc 100644
--- a/DEVELOPING
+++ b/DEVELOPING
@@ -94,6 +94,18 @@ except KeyError:
The get call is nicer (compact) and faster (try,except are slow).
+Exceptions
+----------
+
+Don't use the format raise Exception, "string"
+It will be removed in py3k.
+
+YES:
+ raise KeyError("No key")
+
+NO:
+ raise KeyError, "No key"
+
Imports
-------