[issue1008086] patch for 767150

2009-02-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixing now. -- assignee: twouters -> gregory.p.smith keywords: +easy nosy: +gregory.p.smith ___ Python tracker ___

[issue1008086] patch for 767150

2009-02-11 Thread Daniel Diniz
Daniel Diniz 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 was con

[issue1008086] patch for 767150

2009-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, reopening. -- resolution: out of date -> status: closed -> open ___ Python tracker ___ __

[issue1008086] patch for 767150

2009-02-09 Thread Antoine Pitrou
Antoine Pitrou 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). -- n

[issue1008086] patch for 767150

2009-02-09 Thread Daniel Diniz
Daniel Diniz added the comment: This is a patch for issue 767150, which was closed in 2005. -- nosy: +ajaksu2 ___ Python tracker ___ __