Functional schmunctional...
Steve Holden
steve at holdenweb.com
Thu Feb 12 06:56:38 EST 2009
Hendrik van Rooyen wrote:
> "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 ?
>
Well, my usual answer would be "Ask on c.l.py", but it appears that's no
longer reliable. Jeez, doesn't anyone ... (rinse and repeat).
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list