Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'yet.': 0.04; 'explanation': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'def': 0.12; 'called.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:import': 0.16; 'subject:skip:u 10': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'print': 0.22; 'question': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; '25,': 0.31; 'assert': 0.31; 'me?': 0.32; 'fri,': 0.33; 'link.': 0.33; 'could': 0.34; 'received:google.com': 0.35; 'subject:?': 0.36; 'subject:can': 0.39; 'tell': 0.60; 'jul': 0.74; 'to:none': 0.92 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=F+aLQvuHds9jVbVcyFyZX3Wy4+3XssKNCGvb0/GwkF0=; b=eIDoBXc+8vhgztws8jn9jSvwgZJMQbKdiF+l3DiuZtjA/yC3xL/p4ZcBC+nh6lH+Qy N22VZPgxYarwUW31pFyDpJ4IgefSWtyTkU4nAiS+ZnTaaDhT3+nSFhiM8nEO6g8znmga e5k2V9jR0Q8iO27pKXSPJPDVDgzHq9LGnS7KP+Xy3h9PovCyfwdTYbypRwH98YR3nkEe DqEQPdf90MO+jdWz+I/mH1rCtxkKZkanWXfBSE27eiImNNvpwnc8xwGyUQbjqe8QAv/J Z2QCKPm3ZS485v3gJk3w6/s9qs7qej59J0huBVchviG6FGFRkAOEKOTMNMNLrW+vWcMP N9hg== MIME-Version: 1.0 X-Received: by 10.220.119.8 with SMTP id x8mr14689879vcq.62.1406224725381; Thu, 24 Jul 2014 10:58:45 -0700 (PDT) In-Reply-To: <4d6fc183-7d99-42c4-b5f2-99240f0fe32b@googlegroups.com> References: <15d1bd3b-48f1-45d8-985c-3a5a3691805b@googlegroups.com> <4d6fc183-7d99-42c4-b5f2-99240f0fe32b@googlegroups.com> Date: Fri, 25 Jul 2014 03:58:45 +1000 Subject: Re: How can I import unnecessary_math? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1406224728 news.xs4all.nl 2907 [2001:888:2000:d::a6]:57196 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75161 On Fri, Jul 25, 2014 at 3:54 AM, fl wrote: > It is also a question about the symbol '@' on that link. > > I don't find an explanation about '@' yet. Could you tell me? > > Thanks, > > > > @with_setup(my_setup_function, my_teardown_function) > def test_numbers_3_4(): > print 'test_numbers_3_4 <============================ actual test code' > assert multiply(3,4) == 12 > That's a function decorator. You can look them up on the web now that you know what they're called. :) ChrisA