Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'nasty': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'that).': 0.09; 'jan': 0.12; "wouldn't": 0.14; '(),': 0.16; 'parentheses': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:user': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'header:User-Agent:1': 0.23; 'fixed.': 0.24; 'space.': 0.24; 'mon,': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'am,': 0.29; '(unless': 0.31; 'anyone': 0.31; 'agree': 0.35; 'something': 0.35; 'but': 0.35; 'really': 0.36; 'subject:New': 0.37; 'nov': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'skip:. 10': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'space': 0.40; 'subject: / ': 0.60; 'received:173': 0.61; 'unusual': 0.74; 'received:fios.verizon.net': 0.84; 'mistake': 0.91; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: New user's initial thoughts / criticisms of Python Date: Sun, 10 Nov 2013 19:13:46 -0500 References: <-JadnUirYuhUruPPnZ2dnUVZ8rSdnZ2d@bt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-59-117-133.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384128843 news.xs4all.nl 15983 [2001:888:2000:d::a6]:38605 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59034 On 11/10/2013 6:29 PM, Chris Angelico wrote: > On Mon, Nov 11, 2013 at 4:12 AM, Dennis Lee Bieber > wrote: >>>>> -123 .bit_length() >> -7 >> >> No parens needed if a space precedes the . > > Heh! I would call that an inferior alternative to the parentheses > though; it's so unusual to put a space before the dot that I wouldn't > consider it something to do in normal code. Anyone coming through and > editing would see it as a mistake to be fixed. I have only used int methods in interactive exploration, and have always used space. I have never used (), but agree that they are better for permanent code. The -7 is really nasty (unless one were to actually want that). -- Terry Jan Reedy