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
> 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
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
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
"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
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
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.
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):
.
cool, thanks, I will check document.
--
http://mail.python.org/mailman/listinfo/python-list
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):
> ..
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
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
12 matches
Mail list logo