On Sat, 15 Jul 2017, 12:35 oyster, <lepto.pyt...@gmail.com> wrote: > as the title says. has @ been used in projects? >
Strictly speaking, @ is not an operator. It delimits a decorator statement (in python statements and operations are not the same thing). However, to answer the question you actually asked, yes, all the time. For specific examples, see: pytest's fixtures contextlib.contextmanager (makes creating context managers mich simpler in most cases) @property @classmethod etc. etc. (I sometimes see these used a bit too freely, when a plain attribute or a function at the module level would be more appropriate) > -- -- Matt Wheeler http://funkyh.at -- https://mail.python.org/mailman/listinfo/python-list