Hi Evan,

The @ is a "decorator", knowing this should help you search for a better
explanation than I could give...

Have a look here to start:
http://mail.python.org/pipermail/tutor/2006-September/048978.html

Joel

On Fri, Jun 27, 2008 at 10:48 AM, Evan <[EMAIL PROTECTED]> wrote:

> HI,
>
> When I check example of "cmd2" module (a enhancement of cmd module), I
> can not understand all, for example: the  character "@",
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++
> def options(option_list):
>     ..........<function content>........
>
> class cmd(...):
>    ...............................
>    @options([make_option('-p', '--piglatin', action="store_true",
> help="atinLay")])
> +++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> I do not understand what "@options" does,   most time, I know what the
> meaning of character "*" and character "**", but I was not use "@"
> before.
>
> Thanks for your help.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to