what is meaning of "@" in pyhon program.

John Salerno johnjsal at NOSPAMgmail.com
Fri Jun 27 12:19:19 EDT 2008


"Damon Getsman" <dgetsman at amirehab.net> wrote in message 
news:4bfb891d-7a7b-45bc-b126-1d485c9206ee at m44g2000hsc.googlegroups.com...
> 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.

The OP's code sample makes sense for decorators, I think. Can you post an 
actual sample of what it is you saw? Sounds weird. 





More information about the Python-list mailing list