PyWart: Language missing maximum constant of numeric types!

Arnaud Delobelle arnodel at gmail.com
Sun Feb 26 14:44:57 CET 2012


On 26 February 2012 13:38, Wolfgang Meiners <WolfgangMeiners01 at web.de> wrote:
>      do_it = (len(str) <= maxlength) if maxlength is not None else True

That's a funny way to spell:

    do_it = maxlength is None or len(str) <= maxlength

-- 
Arnaud



More information about the Python-list mailing list