summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmart+matt@google.com <smart+matt@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2010-04-23 02:59:53 +0000
committersmart+matt@google.com <smart+matt@google.com@09200d28-7f98-11dd-ad27-0f66e57d2035>2010-04-23 02:59:53 +0000
commitef688ce950900a728ecf6f23a68dd7108e4e8408 (patch)
tree558cc55f9125d182bce9a85be2aa9d70d258e62a
parent2cad54cce7824d74188b532e7717410f10b182af (diff)
downloadipaddr-py-ef688ce950900a728ecf6f23a68dd7108e4e8408.tar.gz
Edited wiki page through web user interface.
git-svn-id: https://ipaddr-py.googlecode.com/svn@161 09200d28-7f98-11dd-ad27-0f66e57d2035
-rw-r--r--wiki/UpgradingTo2x.wiki11
1 files changed, 6 insertions, 5 deletions
diff --git a/wiki/UpgradingTo2x.wiki b/wiki/UpgradingTo2x.wiki
index 485d8d4..a8cbfbd 100644
--- a/wiki/UpgradingTo2x.wiki
+++ b/wiki/UpgradingTo2x.wiki
@@ -79,13 +79,14 @@ ipaddr 1.x relied mostly on the monolithic IP(string) constructor. This would re
2.x makes much greater use of Python's special methods for returning the integer or string representations of an object.
|| 1.x || 2.x ||
-|| network.ip_ext || str(network) or network.compressed ||
-|| network.ip_ext_full || network.exploded ||
-|| network.ip || int(network) ||
-|| network.netmask_ext || str(network.netmask) ||
+|| str(network) || str(network) ||
+|| network.ip || int(network.ip) or int(network) ||
+|| network.ip_ext || str(network.ip) ||
+|| network.ip_ext_full || network.exploded (for IPv6 only) ||
|| network.netmask || int(network.netmask) ||
-|| network.broadcast_ext || str(network.broadcast) ||
+|| network.netmask_ext || str(network.netmask) ||
|| network.broadcast || int(network.broadcast) ||
+|| network.broadcast_ext || str(network.broadcast) ||
Additionally, the various network attributes ({{{ .ip, .ip_ext, .network, .network_ext, .broadcast, .broadcast_ext }}}) used to return either strings or ints. As mentioned before, they return ipaddr address objects, either of type {{{IPv4Address}}} or {{{IPv6Address}}}.