what is meaning of "@" in pyhon program.

Thierry tschork at gmail.com
Sat Jun 28 20:41:57 CEST 2008


> 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.



More information about the Python-list mailing list