Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed5.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'argument': 0.04; 'subject:Python': 0.05; 'correct,': 0.09; 'restriction': 0.09; 'sep': 0.09; 'steve': 0.13; 'iterable': 0.16; 'sequence,': 0.16; 'wed,': 0.16; 'string': 0.17; 'wrote:': 0.17; 'trying': 0.21; 'do.': 0.21; 'doc': 0.22; 'relaxed': 0.22; "i'd": 0.22; 'header :In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; "i'm": 0.29; 'maybe': 0.29; 'docs': 0.33; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'should': 0.36; 'subject: (': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'fact': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'to:name:python': 0.84; 'technically': 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=CEvrTuMlo3zCwsMpL0/ePAHbXQ1yNw3WTP+bnyHf2jw=; b=EPJOsVKlm5gS6TGaDeu0fKPDx//ovuJ8+IqP/CeZFfnuoIV9TnlFJJA2wEKvBUFtnr 49DIekUQRV+sjskow03aV/oYY5176HTLY5D2F3PnYpLlh7vo2+9agMnEDNHwpk0I6W8c dqd5/axM8qJvMwq+GjAlZq74xfcF8IyccixzlNmLP1lSu8+ohwRR5F0pmWfjxy/jwXTb iDCpG8y7Adr/ccaVXRsPxCMDmjWGDB8IrfdjslDPK54ZkZQ8XEQvS07PIVJtML8YHSxy Icl/8Tv6+/JakGhxP4pMFubLzoT3kfbmlPrYXwHRyILkJA7gRxuDxCnK4kiBbliLL9kA ya7g== MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Wed, 19 Sep 2012 12:33:50 -0600 Subject: Re: sum works in sequences (Python 3) To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348079664 news.xs4all.nl 6950 [2001:888:2000:d::a6]:56413 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29516 On Wed, Sep 19, 2012 at 9:37 AM, Steve Howell wrote: > Sequences are iterables, so I'd say the docs are technically correct, > but maybe I'm misunderstanding what you would be trying to clarify. The doc string suggests that the argument to sum() must be a sequence, when in fact any iterable will do. The restriction in the docs should be relaxed to match the reality.