|
+ Search |
|
Aug 2nd, 2000 06:58
Jon Nelson, unknown unknown, deja (can't remember *who*, though)
def ntoa(long): return string.join(map(str,struct.unpack('4B',struct.pack('<L',long))),'.') In Python 1.6a2 (2.0) it's in the socket module, as inet_ntoa afaik.