What does mean @ sign in first of statement

Chris “Kwpolska” Warrick kwpolska at gmail.com
Sun Sep 1 14:57:20 EDT 2013


On Sun, Sep 1, 2013 at 8:53 PM, Mohsen Pahlevanzadeh
<mohsen at pahlevanzadeh.org> wrote:
> Dear all,
>
> What does mean @ sign in first of statement such as:
>
> //////////////////////
> @hybrid_property
> def fullname(self):
> return self.firstname + " " + self.lastname
> ///////////////////
>
> Sorry for cheap question.
>
> Yours,
> Mohsen
>
> --
> http://mail.python.org/mailman/listinfo/python-list

@hybrid_property is a decorator.  Great resource:
http://simeonfranklin.com/blog/2012/jul/1/python-decorators-in-12-steps/

--
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense



More information about the Python-list mailing list