Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49812
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joshua.landau.ws@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.009 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'subject:code': 0.07; 'default.': 0.09; 'subject:Why': 0.09; 'cc:addr:python-list': 0.11; 'def': 0.12; '**kwargs):': 0.16; 'keyword.': 0.16; 'subject:python3': 0.16; 'supplied': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'pass': 0.26; 'header :In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'received:google.com': 0.35; 'pm,': 0.38; 'even': 0.60; 'july': 0.63; 'to:addr:gmail.com': 0.65; 'subject:this': 0.83; 'subject::': 0.85; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=uKZPmSlUD9y0fut8ADLdCwt8fiD6xp/kdCSQ72R/U2s=; b=aKemGYxoORg3FD2JrAE1cEp04xYaK+Uj4S48S5qzWCeyOuQEifbw6heey4L2KAUplU +mTm4KvKQ1BuY0+53mFHHSfB64dXjl8DieIksegFbXqRUntYsdJY33ZThH3+nfQb+fS4 Pzu2DVTZP+vnjrZ8rTErWF32BlBkAVVfp2UyeF4WLEnn0xaV2m/EuhuwNDGj8LocUiGR /pIcSDa0h36DWm9a3eOgSRm5ozMMW50PZBfB3EqTL/crd1OCLbPbiXFbcI5LGZ30yzPm oikUxXV4ZSoXAKde03cY7wjPBi52PuptAk45EHyaM0sSiBVRiZN970qgGLZfKkD+GToq sRhw== |
| X-Received | by 10.112.182.39 with SMTP id eb7mr2653400lbc.30.1372914661417; Wed, 03 Jul 2013 22:11:01 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <kr2udr$tvv$1@dont-email.me> |
| References | <e0ffc562-4016-4b5d-88c3-5a115da16906@googlegroups.com> <mailman.4202.1372911189.3114.python-list@python.org> <kr2udr$tvv$1@dont-email.me> |
| From | Joshua Landau <joshua.landau.ws@gmail.com> |
| Date | Thu, 4 Jul 2013 06:10:21 +0100 |
| Subject | Re: Why this code works in python3, but not python 2: |
| To | alex23 <wuwei23@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | python-list <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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.4206.1372914669.3114.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1372914669 news.xs4all.nl 15871 [2001:888:2000:d::a6]:37442 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:49812 |
Show key headers only | View raw
On 4 July 2013 05:47, alex23 <wuwei23@gmail.com> wrote: > On 4/07/2013 2:12 PM, Joshua Landau wrote: >> >> On 4 July 2013 04:52, Maciej Dziardziel <fiedzia@gmail.com> wrote: >>> >>> def foo(*args, bar=1, **kwargs): >>> pass > > >> Try "foo(1)" and it will fail -- "bar" needs to be given as a keyword. > > > No it won't, because it is supplied with a default. Pah! I'm not even thinking.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Why this code works in python3, but not python 2: Maciej Dziardziel <fiedzia@gmail.com> - 2013-07-03 20:52 -0700
Re: Why this code works in python3, but not python 2: alex23 <wuwei23@gmail.com> - 2013-07-04 14:05 +1000
Re: Why this code works in python3, but not python 2: Maciej Dziardziel <fiedzia@gmail.com> - 2013-07-03 21:31 -0700
Re: Why this code works in python3, but not python 2: Chris Angelico <rosuav@gmail.com> - 2013-07-04 14:10 +1000
Re: Why this code works in python3, but not python 2: Joshua Landau <joshua.landau.ws@gmail.com> - 2013-07-04 05:12 +0100
Re: Why this code works in python3, but not python 2: alex23 <wuwei23@gmail.com> - 2013-07-04 14:47 +1000
Re: Why this code works in python3, but not python 2: Joshua Landau <joshua.landau.ws@gmail.com> - 2013-07-04 06:10 +0100
csiph-web