Re: What is '@' for

2015-11-14 Thread Dave Farrance
fl wrote: >I read the following code snippet. A question is here about '@'. >I don't find the answer online yet. I recommend this: "Understanding Python Decorators in 12 Easy Steps!" http://simeonfranklin.com/blog/2012/jul/1/python-decorators-in-12-steps/ -- https://mail.python.org/mailman/li

Re: What is '@' for

2015-11-13 Thread Tim Daneliuk
On 11/13/2015 05:14 PM, Chris Angelico wrote: > 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): >>

Re: What is '@' for

2015-11-13 Thread Terry Reedy
On 11/13/2015 6:04 PM, fl wrote: I read the following code snippet. A question is here about '@'. I don't find the answer online yet. Start with the index of the fine docs, which includes symbols. https://docs.python.org/3/genindex-Symbols.html '@' is near the end of the page. @pymc.determin

Re: What is '@' for

2015-11-13 Thread Chris Angelico
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(