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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue1711> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com