On Tue, Jan 10, 2012 at 10:32 AM, Nick Dokos <nicholas.do...@hp.com> wrote:
> Chris Angelico <ros...@gmail.com> wrote:
>> Point to note: The inverse operation, getting IP addresses from names,
>
> so socket.gethostbyaddr(os.environ['REMOTE_ADDR'])[0] is the 0th element
> of the tuple, i.e. the *name* that is returned.

Correct, I was drawing a noteworthy parallel with the inverse - gethostbyname.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to