Daniel Diniz aja...@gmail.com added the comment:
Test from issue 767150:
socket.inet_aton() returns an 8 byte string when built
on Linux/IA64. This should be 4 bytes on all
architectures. Example:
import socket
socket.inet_aton('192.168.2.1')
'\xc0\xa8\x02\x01\x00\x00\x00\x00'
The bug
Gregory P. Smith g...@krypto.org added the comment:
fixing now.
--
assignee: twouters - gregory.p.smith
keywords: +easy
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1008086
Daniel Diniz aja...@gmail.com added the comment:
This is a patch for issue 767150, which was closed in 2005.
--
nosy: +ajaksu2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1008086
___
Antoine Pitrou pit...@free.fr added the comment:
I'm not sure in_addr_t is available everywhere. unsigned int should be
a good bet, since it is 32-bits in most platforms. Guarding the code
with a #if (SIZEOF_INT == 4) and erroring out otherwise will make the
patch ok (and, please add a test).
Antoine Pitrou pit...@free.fr added the comment:
Sorry, reopening.
--
resolution: out of date -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1008086
___