(3)
Thu Mar 24 2005 21:12 Socket Question:
Okay, here's something interesting. Python's socket documentation for the socket.shutdown method mentions three constants: SHUT_RD, SHUT_WR, and SHUT_RDWR. However, nowhere I can find does Python actually define these constants. It's obvious what they are because they're ripped off from C/Unix constants of the same names, and those always start numbered from zero. But it seems really weird that the socket library would forget to define these constants even though it defines a million other constants. Am I missing someplace where those constants are defined?
Posted by Fredrik at Fri Mar 25 2005 01:29
Posted by Leonard at Fri Mar 25 2005 01:36
Posted by Fredrik at Fri Mar 25 2005 01:57