Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'tries': 0.07; 'lawrence': 0.09; 'python': 0.11; 'bug': 0.12; '11:59': 0.16; ':-(': 0.16; 'be:': 0.16; 'picks': 0.16; 'subject:Java': 0.16; 'used:': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'programming': 0.22; 'mon,': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'up.': 0.33; "i'd": 0.34; 'could': 0.34; 'problem.': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'error.': 0.37; 'reports': 0.37; 'configured': 0.38; 'to:addr :python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'dangerous': 0.60; 'introduced': 0.61; '2015': 0.84; 'subject:experience': 0.84; 'careful': 0.91; 'on?': 0.91 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 :content-type; bh=b3Ui3DzHA9qI+GiIfC5LHmvRcVqC6B9xUfCugMiGJBM=; b=ii4q9m+6Iv6qKrgE9ESNu/mHTflI+eOvqKVMj6SyZoyIiTtMTWSaabzruutT2IY6Pu VL1XYlgtxbRZx/ERc8T8W+yV1njXUQ2cLIAkjdJczwCg4LljPgIKWrH+LUd7w9U4buyQ cRbJtewHjmcznY6A6HeDonaRktiPAoCUyZDFI7iApCnfsk8WjueaqpGOFDcMs+S60MFe 9fI0boLDrRSFzQ9K9rRDX0qBbu3njT9QL4ndJ6gyiVd3B8md4ui0nZXda0BrnDcmrOch m8PBlLureoypX6tGrttJ0rILxRrrSTOYWDL8YutES9huCQrMzApHlCjst4K6+EyAW7Wx WTmw== X-Received: by 10.43.17.74 with SMTP id qb10mr25958421icb.94.1430768426727; Mon, 04 May 2015 12:40:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <87r3qwid3u.fsf@Equus.decebal.nl> From: Ian Kelly Date: Mon, 4 May 2015 13:39:46 -0600 Subject: Re: Bitten by my C/Java experience To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430768429 news.xs4all.nl 2908 [2001:888:2000:d::a6]:41060 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89927 On Mon, May 4, 2015 at 11:59 AM, Mark Lawrence wrote: > On 04/05/2015 16:20, Cecil Westerhof wrote: >> >> Potential dangerous bug introduced by programming in Python as if it >> was C/Java. :-( >> I used: >> ++tries >> that has to be: >> tries += 1 >> >> Are there other things I have to be careful on? That does not work as >> in C/Java, but is correct syntax. >> > > Not dangerous at all, your test code picks it up. I'd also guess, but don't > actually know, that one of the various linter tools could be configured to > find this problem. pylint reports it as an error.