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


Groups > comp.lang.python > #98779

Re: What is '@' for

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: What is '@' for
Date Sat, 14 Nov 2015 10:14:11 +1100
Lines 17
Message-ID <mailman.311.1447456460.16136.python-list@python.org> (permalink)
References <b4254670-28c9-4e2c-a221-a27c0d6f62e9@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 3d4uFazY0TQqxEtyfyexZgZr7PqnyqmyI37W/hFh3Otw==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'yet.': 0.03; 'cc:addr:python-list': 0.09; 'here?': 0.09; 'python': 0.10; 'def': 0.13; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'question': 0.27; 'message- id:@mail.gmail.com': 0.27; '14,': 0.27; 'function': 0.28; 'code': 0.30; 'posts': 0.30; 'received:google.com': 0.35; 'nov': 0.35; 'there': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'skip:p 20': 0.38; 'called': 0.40; "you'll": 0.61; 'here': 0.66; 'articles': 0.67; 'online': 0.71; 'chrisa': 0.84; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=s2CFoArufQQG+VvZ0+7LKqcL1S1DxH6dEEZEA4xZWxE=; b=Yr984mvqIXM230iDecq7SmPvHgxTEPLRCKGH8gyKC6VeBPIWkdBtT1YFH7JGiK4QVc tOpV8QQuBmn9rOw5dlz9luFEcSW207Lvsge2rInzpjD4rBb03Lz++NR+aCHA7bdb4+h3 F6xcynvqDL+USPoRRd65jr4GU3Nz7GmzEiZvSDJfgGpzk6Jd8Rb2P4pyWNMwDe4AsvpU LlVbJSu1+evw/T5B4EdvgXPLXXkSDx6/WUolrCpMavTiGRYB4KnqmgZuZ5DRo7ju3FpE 71UxrF0wXZKVgAcbkQxBhlrD0mYmZZnGyHq8FEh6zK4wqvSw6CePU99M30PT9k8imql/ 1JfQ==
X-Received by 10.107.16.84 with SMTP id y81mr21542400ioi.19.1447456451260; Fri, 13 Nov 2015 15:14:11 -0800 (PST)
In-Reply-To <b4254670-28c9-4e2c-a221-a27c0d6f62e9@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98779

Show key headers only | View raw


On Sat, Nov 14, 2015 at 10:04 AM, fl <rxjwg98@gmail.com> wrote:
> I read the following code snippet. A question is here about '@'.
> I don't find the answer online yet.
>
> What function is it here?
>
>
> @pymc.deterministic
> def theta(a=alpha, b=beta):
>     """theta = logit^{-1}(a+b)"""
>     return pymc.invlogit(a+b*x)

That's called a "function decorator". And now that you know the name,
you'll be able to find what it is online; as well as the Python docs,
there are a number of blog posts and other articles about it.

ChrisA

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


Thread

What is '@' for fl <rxjwg98@gmail.com> - 2015-11-13 15:04 -0800
  Re: What is '@' for Chris Angelico <rosuav@gmail.com> - 2015-11-14 10:14 +1100
    Re: What is '@' for Tim Daneliuk <tundraBOGUS@tundraware.com> - 2015-11-13 17:43 -0600
  Re: What is '@' for Terry Reedy <tjreedy@udel.edu> - 2015-11-13 18:43 -0500
  Re: What is '@' for Dave Farrance <df@see.replyto.invalid> - 2015-11-14 09:14 +0000

csiph-web