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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aahz

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

    In article <4bfb891d-7a7b-45bc-b126-1d485c9206ee@m4 4g2000hsc.googl egroups.com>,
    Damon Getsman <dgetsman@amire hab.netwrote:
    >
    >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. I don't _THINK_ that the decoration definition
    >fits, though, because the examples that I saw it in had it prefixing
    >an if conditional & a for loop.
    >
    >ie:
    >@if os.exists(foo):
    etc
    etc
    >
    >and
    >
    >@for blah:
    etc
    etc
    Guessing:

    This is either a source document of text where "@" is some kind of markup
    indicating a keyword (so that keywords can be e.g. bolded in the output)
    or this is a snippet of code from some kind of Python-based HTML
    templating language where "@" is used to indicate Python keywords that
    need to be interpreted instead of static text.
    --
    Aahz (aahz@pythoncra ft.com) <* http://www.pythoncraft.com/

    "as long as we like the same operating system, things are cool." --piranha
Working...