Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: What is '@' for Date: Sat, 14 Nov 2015 10:14:11 +1100 Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 3d4uFazY0TQqxEtyfyexZgZr7PqnyqmyI37W/hFh3Otw== Return-Path: 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: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98779 On Sat, Nov 14, 2015 at 10:04 AM, fl 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