code review

Thomas 'PointedEars' Lahn PointedEars at web.de
Sat Jun 30 14:39:22 EDT 2012


Peter Otten wrote:

> If you spell it
> 
> def is_valid_password(password):
>     return mud.minpass <= len(password) <= mud.maxpass
> 
> it is even easier to see that you are performing an interval check.

This is probably a tautology around here, but *what* *a* *great* 
*programming* *language*.

-- 
PointedEars

Please do not Cc: me. / Bitte keine Kopien per E-Mail.



More information about the Python-list mailing list