On Mon, Dec 15, 2008 at 12:33 PM, Mary Lou Knack <mlkn...@gmail.com> wrote:
> I'm looking at some code from Enthought's ETS examples and ran across the
> following statement:
>
> @mayavi2.standalone
>
> I have no idea what the "@" operator means, if anything.  I tried searching
> for it in the documentation (locally and online), but no luck.  Or rather,
> the local (windows) help said it couldn't search for that phrase (@) and the
> online search turned up a bazillion hits and I don't know how to refine the
> search.

It indicates a decorator.
Try this:
http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Decorators

If you're just starting out in Python, decorators can be hard to get
your head around...
-- 
www.fsrtechnologies.com
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to