[Edu-sig] How do we tell truths that might hurt
christian.mascher at gmx.de
Mon Apr 26 11:14:19 EDT 2004
this was a way of telling _a_ truth, without hurting anyone.
I think I never really laughed out loud before when reading Edu-Sig
(serious postings most of the time). I really enjoyed this!
Arthur Siegel wrote:
> Date: Fri, 23 Apr 2004 05:28:48 -0500
> From: Arthur <ajsiegel at optonline.net>
> Subject: RE: [Edu-sig] How do we tell truths that might hurt
> To: hancock at anansispaceworks.com, edu-sig at python.org
> Message-ID: <0HWM00MEKD3WA9 at mta9.srv.hcvlny.cv.net>
> Content-Type: text/plain; charset=us-ascii
> Terry -
>>import re, string
>>illegal_re = re.compile(r'[^a-zA-Z\s]+')
>>words = [w for w in illegal_re.sub(' ', open('myfile',
>>'r').read()).lower().split() if len(w)>2]
>>Now that wasn't terribly difficult, was it? ;-)
> Piece of cake!
More information about the Edu-sig