[Pythonmac-SIG] Any chance of getting this to run on OSX?
Leo
sdl.web at gmail.com
Mon Feb 27 07:24:31 CET 2012
On 2012-02-27 08:44 +0800, Nicholas Riley wrote:
> That script is an excellent example of how not to do things; it makes
> assumptions about constant values and structure layout that may not
> hold true on one operating system, much less between operating
> systems.
>
> You are almost certainly better off using another mechanism. What
> interface information are you trying to obtain?
The interface names and the addresses bound to them. Much like
network-interface-list (http://paste.pocoo.org/show/556841/) in Emacs,
which returns:
(("en1" . [10 0 0 114 0]) ("lo0" . [127 0 0 1 0]))
Leo
More information about the Pythonmac-SIG
mailing list