]> granicus.if.org Git - python/commit
Extended socket.htonl and ntohl to accept longs.
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 25 Jul 2002 16:01:12 +0000 (16:01 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 25 Jul 2002 16:01:12 +0000 (16:01 +0000)
commitc075e197d6453939bce6253ebb4fdb5dffaeb6c7
treed5d1de007ff4dd7a5d2b56aa8b4cedcab5a2c865
parentb8a690d42a2476eeb308cb379382a3337f3a3c07
Extended socket.htonl and ntohl to accept longs.

Fixes SF bug #568322.

The code should raise an OverflowError if the long is > 32 bits, even
on platforms where sizeof(long) > 4.
Lib/test/test_socket.py
Modules/socketmodule.c