Stephen J. Turnbull wrote:
>
>It occurs to me that this API is going to make it hard to provide help
>to users.  Maybe CheckPassword's API should be to raise an
>InvalidPasswordError with an appropriate reason, or alternatively to
>return a false value if nothing is wrong with the password, otherwise
>return a list of reasons it is invalid (ie, return 'reasons' in the
>example below).


Thank you Stephen.  Your API is clearly better than mine. I appreciate
the help.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to