summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpmoody@google.com <pmoody@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2010-02-23 23:19:09 +0000
committerpmoody@google.com <pmoody@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2010-02-23 23:19:09 +0000
commitcbaea667304af21fec7b249a7fe6aa3d965ff4a2 (patch)
tree77844c1e104814819ddf65b3f6b88343ac9efa58
parentcc0e63cf2d1425c13dc312d031d273afa7d3d775 (diff)
downloadipaddr-py-cbaea667304af21fec7b249a7fe6aa3d965ff4a2.tar.gz
Edited wiki page through web user interface.
git-svn-id: https://ipaddr-py.googlecode.com/svn@151 09200d28-7f98-11dd-ad27-0f66e57d2035
-rw-r--r--wiki/UpgradingTo2x.wiki15
1 files changed, 12 insertions, 3 deletions
diff --git a/wiki/UpgradingTo2x.wiki b/wiki/UpgradingTo2x.wiki
index ae9ebb1..14e7eec 100644
--- a/wiki/UpgradingTo2x.wiki
+++ b/wiki/UpgradingTo2x.wiki
@@ -4,8 +4,7 @@ This page describes the major differences between the 1.x and 2.x branches of ip
= Introduction =
-foobar
-
+Lots of work has gone into making the 2.x branch of ipaddr easier to use and better overall. Since we'd like as many people as possible to use to new version, here's a short summary of the major changes and what you'll have to do to your code to make it work with the new version.
= Details =
@@ -66,4 +65,14 @@ ipaddr 1.x relied mostly on the monolithic IP(string) constructor. This would re
=== Exceptions ===
-*more to come* \ No newline at end of file
+In general, the exceptions are much more "pythonic". No more inventing exceptions for every corner case since python politely furnishes us with almost every exception type we already need. In the couple of cases where it does actually make sense for us to have our own exceptions, they're now subclassed from ValueError so you can shortcut the exception catching if you'd like and just catch ValueError.
+
+
+|| 1.x || 2.x ||
+|| ipaddr.IPv4IpValidationError || ipaddr.AddressValueError ||
+|| ipaddr.IPv6IpValidationError || ipaddr.AddressValueError ||
+|| ipaddr.IPv4NetmaskValidationError || ipaddr.NetmaskValueError ||
+|| ipaddr.IPv6NetmaskValidationError || ipaddr.NetmaskValueError ||
+|| ipaddr.IPTypeError || TypeError ||
+|| ipaddr.IPAddressExclussionError || ValueError ||
+|| ipaddr.PrefixLenDiffInvalidError || ValueError ||