Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53423

Re: What does mean @ sign in first of statement

References <1378061617.6921.3.camel@debian>
Date 2013-09-01 20:57 +0200
Subject Re: What does mean @ sign in first of statement
From Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.454.1378061848.19984.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Sep 1, 2013 at 8:53 PM, Mohsen Pahlevanzadeh
<mohsen@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: What does mean @ sign in first of statement Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-09-01 20:57 +0200

csiph-web