Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'def': 0.13; '*never*': 0.16; '7:35': 0.16; 'executed.': 0.16; 'subject:function': 0.16; 'cc:addr:python-list': 0.16; 'mon,': 0.16; 'wrote:': 0.18; 'subject:problem': 0.19; 'jan': 0.19; 'cc:no real name:2**0': 0.20; 'cheers,': 0.20; 'header:In-Reply-To:1': 0.22; 'received:209.85.212.46': 0.23; 'received:mail- vw0-f46.google.com': 0.23; 'cc:2**0': 0.24; 'message- id:@mail.gmail.com': 0.28; 'print': 0.29; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'chris': 0.30; 'received:209.85.212': 0.34; 'latter': 0.34; 'received:google.com': 0.37; "there's": 0.37; 'received:209.85': 0.38; 'received:209': 0.40; 'here': 0.65; '2012': 0.67; '\xc2\xa0\xc2\xa0': 0.73; 'sender:addr:chris': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tN8H55xYA+MuARf28osclA4rE1z2fW6dlh6kf7FdcJY=; b=VHKuMRP4uFfhf6u2N/wapNT7n6+tVhRqcTidElY6gK+KobPV77oI1VATDMBn2NldCI 8f3frUaB7LnKkXl+iiDYLLfdQH/J9HPZQnGtYdrwcARKC6haS5XhljLrnl8bsgIoAGX7 LxYz4rvAGouluxTpfhzHWilFtBRrmNrtL34VM= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: References: Date: Mon, 9 Jan 2012 19:44:31 -0800 X-Google-Sender-Auth: lgTF256o1tLZDaH0gzsTdu7ni-M Subject: Re: function problem From: Chris Rebert To: contro opinion Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326167074 news.xs4all.nl 6849 [2001:888:2000:d::a6]:49658 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18729 On Mon, Jan 9, 2012 at 7:35 PM, contro opinion wro= te: > code1: > > def FirstDeco(func): > =C2=A0=C2=A0 print 'haha' > =C2=A0=C2=A0 y=3Dfunc() > =C2=A0=C2=A0 return y > =C2=A0=C2=A0 print=C2=A0 y Since there's a `return` right before it, the latter `print` here will *never* be executed. Cheers, Chris