Regex driving me crazy...

Grant Edwards invalid at invalid.invalid
Wed Apr 7 22:38:30 EDT 2010


On 2010-04-08, James Stroud <nospamjstroudmapson at mbi.ucla.edu> wrote:
> Patrick Maupin wrote:
>> BTW, although I find it annoying when people say "don't do that" when
>> "that" is a perfectly good thing to do, and although I also find it
>> annoying when people tell you what not to do without telling you what
>> *to* do, and although I find the regex solution to this problem to be
>> quite clean, the equivalent non-regex solution is not terrible
>
> I propose a new way to answer questions on c.l.python that will (1) give respondents the pleasure of vague admonishment and (2) actually answer the question. The way I propose utilizes the double negative. For example:
>
> "You are doing it wrong! Don't not do <code>re.split('\s{2,}', s[2])</code>."
>
> Please answer this way in the future.

I will certain try to avoid not answering in a manner not unlike that.

-- 
Grant



More information about the Python-list mailing list