This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Convert between various representations of an IPv4 address. | |
`ip` refers to a dotted string, like: `'127.0.0.1'`. | |
`octets` are indexables, like `(127, 0, 0, 1)`. | |
`int` is the integer representation, like `2130706433`. | |
Written for Python 2.7. | |
""" |