"Steve Holden" <ste....nweb.com> wrote: > Jeez, doesn't anyone read the fine manual any more? I hope this was just > an academic exercise. > > >>> socket.inet_ntoa(struct.pack("!l", 1000000000)) > '59.154.202.0' > >>> > > Holden's rule: when it looks simple enough to be worth including in the > standard library it may well already *be* in the standard library.
Aaah! But how do you find it, if you don't already know where it lives and what it's called ? - Hendrik -- http://mail.python.org/mailman/listinfo/python-list