[Tutor] miniwiki 1.3 BETA bugs

Kirk Z Bailey deliberatus at verizon.net
Mon Feb 26 05:15:35 CET 2007


RE leaves me totally confuzzzeddded. Yep, so confuised I'm having 
trouble spelling it. Sp this one line will replace both words and give a 
reliable result?

Barnaby Scott wrote:
[snip]
> No idea if it has anything to do with your problem, but it struck me 
> that the iswikiword() function (and processword() which seems to be a 
> helper for it) could be replaced with one line, and it would be reliable!
> 
> def iswikiword(word):
>         return bool(re.match('^([A-Z][a-z]+){2,}$', word))
> 
> Of course you need to import re, but that seems a small price to pay!
> 
> HTH
> 
> Barnaby Scott
> 
> 

-- 
end

Very Truly yours,
                  - Kirk Bailey,
                    Largo Florida

                        kniht
                       +-----+
                       | BOX |
                       +-----+
                        think



More information about the Tutor mailing list