kj7ny wrote:

> What is @checkPrivs (see example copied below from other post)?  In
> fact... how does the thing work at all? 

> @checkPrivs
> def add(a,b):
>     return a+b

@... is called a decorator and is just a fancy way of writing

def add(a, b):
    return a+b
add = checkPrivs(add)

Peter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to