Re: what is meaning of "@" in pyhon program.

2008-06-30 Thread cokofreedom
On Jun 28, 8:41 pm, Thierry <[EMAIL PROTECTED]> wrote: > > ie: > > @if os.exists(foo): > >etc > >etc > > > and > > > @for blah: > >etc > >etc > > This sounds more like PHP code, where a @ prefixing a function means > that even if there are errors or warnings, you don't want to see t

Re: what is meaning of "@" in pyhon program.

2008-06-28 Thread Thierry
> ie: > @if os.exists(foo): >    etc >    etc > > and > > @for blah: >    etc >    etc > This sounds more like PHP code, where a @ prefixing a function means that even if there are errors or warnings, you don't want to see them. -- http://mail.python.org/mailman/listinfo/python-list

Re: what is meaning of "@" in pyhon program.

2008-06-28 Thread Aahz
In article <[EMAIL PROTECTED]>, Damon Getsman <[EMAIL PROTECTED]> wrote: > >Okay, maybe I just didn't understand the websites that were given as >examples as to 'decoration'. I first came across the unusual '@' when >I was browsing through some extreme beginner's information on os.x >method descr

Re: what is meaning of "@" in pyhon program.

2008-06-27 Thread Damon Getsman
I didn't think that it was. I just spent about 10 minutes trying to google for the page that I found that on, but I wasn't able to turn it up. My google-fu sucks. I know that I was researching a particular part of the os module and that the snippets of script on the page had an example containin

Re: what is meaning of "@" in pyhon program.

2008-06-27 Thread John Salerno
"Damon Getsman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Okay, maybe I just didn't understand the websites that were given as > examples as to 'decoration'. I first came across the unusual '@' when > I was browsing through some extreme beginner's information on os.x > method

Re: what is meaning of "@" in pyhon program.

2008-06-27 Thread Bruno Desthuilliers
Damon Getsman a écrit : Okay, maybe I just didn't understand the websites that were given as examples as to 'decoration'. I first came across the unusual '@' when I was browsing through some extreme beginner's information on os.x method descriptions. I asked some other people about it and they

Re: what is meaning of "@" in pyhon program.

2008-06-27 Thread Damon Getsman
Okay, maybe I just didn't understand the websites that were given as examples as to 'decoration'. I first came across the unusual '@' when I was browsing through some extreme beginner's information on os.x method descriptions. I asked some other people about it and they had no idea what it meant.

Re: what is meaning of "@" in pyhon program.

2008-06-27 Thread Bruno Desthuilliers
Mike Driscoll a écrit : On Jun 27, 9: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): .

Re: what is meaning of "@" in pyhon program.

2008-06-27 Thread Evan
cool, thanks, I will check document. -- http://mail.python.org/mailman/listinfo/python-list

Re: what is meaning of "@" in pyhon program.

2008-06-27 Thread Mike Driscoll
On Jun 27, 9: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): >      ..

Re: what is meaning of "@" in pyhon program.

2008-06-27 Thread Joel Corbin
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

what is meaning of "@" in pyhon program.

2008-06-27 Thread Evan
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): .. class cmd(...): ... @opt