what is meaning of "@" in pyhon program.

Evan xdicry at gmail.com
Fri Jun 27 16:48:17 CEST 2008


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.




More information about the Python-list mailing list