How to portably find local IPv4 _and_ IPv6 addresses using Python's stdlib?
<p>I'm interested in enumerating <em>all</em> local ipv4 <em>and</em> ipv6 addresses on a system.</p>

<p>The solution needs to be pure python (without shelling out).</p>

<p>Ideally it's portable (Linux, OSX, Windows) but I doubt that's possible, so an answer for each platform would work, too...</p>
