[Edu-sig] How do we tell truths that might hurt
Christian Mascher
christian.mascher at gmx.de
Mon Apr 26 11:14:19 EDT 2004
Thanks Arthur,
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!
Christian
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]+')
>
>
> Huh?
>
>
>>words = [w for w in illegal_re.sub(' ', open('myfile',
>>'r').read()).lower().split() if len(w)>2]
>
>
> Whoa?
>
>
>>Now that wasn't terribly difficult, was it? ;-)
>
>
> Piece of cake!
>
> Art
More information about the Edu-sig
mailing list