I'm interested in enumerating all local ipv4 and ipv6 addresses on a system.
The solution needs to be pure python (without shelling out).
Ideally it's portable (Linux, OSX, Windows) but I doubt that's possible, so an answer for each platform would work, too...