On 9/21/07, Arvind Singh <[EMAIL PROTECTED]> wrote:

>  @validate_proxy
>  proxy = "http://user:[EMAIL PROTECTED]:port/"
>
> it makes more sense to have the validation
> of a user supplied configuration value at the time of assignment
> rather than leaving the burden of validation on every piece of code
> that uses it.

Why can't you just use a property that does the validation
in its set method?

--
Greg
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to