Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!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.008 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'argument': 0.05; 'subject:Python': 0.06; 'list?': 0.07; 'lawrence': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; 'argument,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'feb': 0.22; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; 'own,': 0.31; 'anybody': 0.35; 'received:google.com': 0.35; 'keyword': 0.36; 'object,': 0.36; 'should': 0.36; 'pm,': 0.38; 'how': 0.40; 'dave': 0.60; 'today.': 0.61; '26,': 0.68; '2015': 0.84; 'now...': 0.84; 'subject:Practices': 0.84; 'angel': 0.91; '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=WGmpaDwEaYkbmki54GC19VjYgZILLu206OQYyiKUXVI=; b=baKhJgIz8YcVbxXJfSbA9KGwdCkHqZUE/CdZriB0qP3XT6q5nPW2RWw+L/9p3uAAPX gc5O95h7wwzBq6AETzhkY8OanOYkVEh2NzKvV+Hpq+uY3RKtRQzWjxBcK65AT3xTjQSZ CpaGnuO9WLvk+5Qw/MCQenzfZGFgoLUg0vhEmCnbjq4R/JIox+G3P+QGhi4jyh1797sR cBFVPed/1GGgsHBDwODTEcb3LrW7M4leWv4FFjZ74F9HTRdRbKNqddr0qrG4xsilTTs+ V4uvvHJ6ZLxEpWSGYLWY4QF21GTvgtRJS58svvlKWpbbjm+5wXoFo5EyhnHpagNge+t2 iUxg== MIME-Version: 1.0 X-Received: by 10.43.171.2 with SMTP id ns2mr7565331icc.26.1424920632234; Wed, 25 Feb 2015 19:17:12 -0800 (PST) In-Reply-To: <54EE8D63.2050208@davea.name> References: <54EE8D63.2050208@davea.name> Date: Thu, 26 Feb 2015 14:17:12 +1100 Subject: Re: Python Worst Practices 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424920639 news.xs4all.nl 2857 [2001:888:2000:d::a6]:35131 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86466 On Thu, Feb 26, 2015 at 2:05 PM, Dave Angel wrote: > On 02/25/2015 08:44 PM, Mark Lawrence wrote: >> >> On 25/02/2015 20:45, Mark Lawrence wrote: >>> >>> http://www.slideshare.net/pydanny/python-worst-practices >>> >>> Any that should be added to this list? Any that be removed as not that >>> bad? >>> >> >> Throwing in my own, how about built-in functions should not use "object" >> as the one and only argument, and a keyword argument at that. >> > > def marry(object = False)... > > > if anybody has any cause to object, let him speak now... Python. Python is what bwings us togethar, today. And def, twue def, will make your argument into a keyword argument that will fowwow you forevah and evah. So tweasure your keyword arguments... ChrisA