Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18729
| 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 | <chris@rebertia.com> |
| 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 | <CA+YdQ_6dCAQDkrgbAVaTFhWb-Q1PJwPzgLwq69TT90NE8QoVYg@mail.gmail.com> |
| References | <CA+YdQ_6dCAQDkrgbAVaTFhWb-Q1PJwPzgLwq69TT90NE8QoVYg@mail.gmail.com> |
| Date | Mon, 9 Jan 2012 19:44:31 -0800 |
| X-Google-Sender-Auth | lgTF256o1tLZDaH0gzsTdu7ni-M |
| Subject | Re: function problem |
| From | Chris Rebert <clp2@rebertia.com> |
| To | contro opinion <contropinion@gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4573.1326167074.27778.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Mon, Jan 9, 2012 at 7:35 PM, contro opinion <contropinion@gmail.com> wrote: > code1: > > def FirstDeco(func): > print 'haha' > y=func() > return y > print y Since there's a `return` right before it, the latter `print` here will *never* be executed. Cheers, Chris
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: function problem Chris Rebert <clp2@rebertia.com> - 2012-01-09 19:44 -0800
csiph-web