ipython/ipython — pull request #4166 by minrk (2013-09-03 20:08:50+00:00)
Title: avoid executing code in utils.localinterfaces at import time

moves away from global constants to utility functions.

The code is still only executed once, but instead of at import time, it is executed the first time it is needed.