On 26 February 2012 13:38, Wolfgang Meiners <[email protected]> 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
--
http://mail.python.org/mailman/listinfo/python-list
