Functional schmunctional...
Hendrik van Rooyen
mail at microcorp.co.za
Thu Feb 12 01:18:54 EST 2009
"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
More information about the Python-list
mailing list