PyWart: Language missing maximum constant of numeric types! (original) (raw)
Arnaud Delobelle arnodel at gmail.com
Sun Feb 26 08:44:57 EST 2012
- Previous message (by thread): PyWart: Language missing maximum constant of numeric types!
- Next message (by thread): PyWart: Language missing maximum constant of numeric types!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 26 February 2012 13:38, Wolfgang Meiners <WolfgangMeiners01 at web.de> wrote:
doit = (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
- Previous message (by thread): PyWart: Language missing maximum constant of numeric types!
- Next message (by thread): PyWart: Language missing maximum constant of numeric types!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]