How to get the local mac address?

bonono at gmail.com bonono at gmail.com
Thu Dec 15 09:24:14 EST 2005


Grant Edwards wrote:
> On 2005-12-15, bonono at gmail.com <bonono at gmail.com> wrote:
>
> >>>>Why should you want to associate a MAC address with a socket? Each
> >>>>interface has an IP address, and it's that you should be using.
> >>>
> >>> Say for example I want to find out the MAC if a particular
> >>> interface in python.
> >>
> >> When you are asked "why would you want to do something" it
> >> isn't normally considered sufficient to reply "suppose I want
> >> to do something". I'm still trying to find out what use case
> >> (apart from curiosity) drives this need to know.
> >
> > That is nothing but curiosity of why there is no such thing. I
> > didn't start a thread with "what the xyz@!% hell that I cannot
> > get MAC address through the socket module".
> >
> > And I answer things the way I want to, if it does fit your
> > expected answer, there is nothing I can do. I am not here to
> > convince you.
>
> Taking an attitude like that towards one of the most respected
> people in the Python community is bound to be rather counter
> productive.
>
> Nobody owes you any answers, so yes, in fact, you _are_ here to
> convince people that you deserve their help.
>
I get my answer anyway, and I don't know who is respected on here and
if I do, it won't change a thing in the way I answer it.




More information about the Python-list mailing list