Ed Leafe wrote:
> On Mar 2, 2008, at 4:24 PM, Kenneth Kixmoeller/fh wrote:
> 
>>>     Re-wrote the script that archives messages.
>> Feel another Feb 29 coming on? <g>
> 
> 
>       Yep!
> 
>       Actually, that was one of the first Python scripts I had ever  
> written. It was before I knew much about the built-in modules, and  
> contained some email-parsing code that worked pretty well... well,  
> except on Leap Day! The new script uses the Python email module, and  
> the total code was reduced from almost 9K to just about 2K.

I'm still surprised when I find out about a standard library I was 
unaware of. On one hand, it sucks knowing I spent time coding something 
by hand when I didn't need to; on the other hand reducing 150 lines to:

from stdlib import libfunc
myresult = libfunc(*myargs)

is pretty satisfying.

Paul


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to