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: 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: References: From: Joshua Landau Date: Thu, 4 Jul 2013 06:10:21 +0100 Subject: Re: Why this code works in python3, but not python 2: To: alex23 Content-Type: text/plain; charset=UTF-8 Cc: python-list 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: 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 On 4 July 2013 05:47, alex23 wrote: > On 4/07/2013 2:12 PM, Joshua Landau wrote: >> >> On 4 July 2013 04:52, Maciej Dziardziel 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.