[issue1711] socket functions that should return unsigned int return signed int
Maarten Thibaut
report at bugs.python.org
Sun Dec 30 23:01:11 CET 2007
Maarten Thibaut added the comment:
Try this on Linux and Solaris:
-----------------------
from socket import ntohs, htons
print ntohs(htons(55000))
-----------------------
On Linux:
55000
On Solaris:
-10536
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1711>
__________________________________
More information about the Python-bugs-list
mailing list