Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!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.031 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.01; 'subject: + ': 0.07; '40,': 0.09; 'cc:addr:python-list': 0.11; '2.7': 0.14; "'to": 0.16; '__future__': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'problem': 0.35; 'subject:with': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'determine': 0.67; '2015': 0.84; 'subject:Using': 0.84; 'fibonacci': 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=vyWT0hCwohrMeeTFm1ZfCzsU5q7ss79XQigOZduUFIw=; b=zPxgIrOwJmeBJoYWqblE88hQG6GEL6dbATSYJguhR9R/xNE6ZPlt0z8MGih1Nfq5jP dunhnLodV0dDOrKTNBgHpwvDYuut0z569h76aeoAnYhsgymVALf06X1aEW02YMEucXkA 7+RQOwpMe/CQOP2iFfyF88/t2oDU4pbIExOwBYE10dd7GSwQGHDxqSKa2/0g3/YVjZqg /2IGRdhfHnWlgAn2at+W5mOEg//F9TC2NrB7fLL+GqLEXHowVKOqBYNVGFppWQ+abs2N tefxyAbs1H0Hta/KD1b3LQo+BbGsu4buERbJ/BGSjRWAHhqi6ViRGYN8U1J6B4XQJwg+ ALhQ== MIME-Version: 1.0 X-Received: by 10.43.39.1 with SMTP id tk1mr1128972icb.26.1430312160121; Wed, 29 Apr 2015 05:56:00 -0700 (PDT) In-Reply-To: <87egn3ced3.fsf@Equus.decebal.nl> References: <878udbxrpg.fsf@Equus.decebal.nl> <87egn3ced3.fsf@Equus.decebal.nl> Date: Wed, 29 Apr 2015 22:55:59 +1000 Subject: Re: Using + with strings considered bad 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.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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430312164 news.xs4all.nl 2905 [2001:888:2000:d::a6]:36535 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3206 X-Received-Body-CRC: 849152589 Xref: csiph.com comp.lang.python:89549 On Wed, Apr 29, 2015 at 10:23 PM, Cecil Westerhof wrote: > In 2.7 that gives: > ('Calculating fibonacci and fibonacci_memoize once for', 40, 'to determine speed increase') > > So I am going to use the one above it. Start your script with: from __future__ import print_function Problem solved! :) ChrisA