Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29516
| 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 | <ian.g.kelly@gmail.com> |
| 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 | <cf126c38-759a-4d56-bd1d-98c54c1f9f16@u15g2000yql.googlegroups.com> |
| References | <franck-E8B1EB.16412019092012@news.free.fr> <mailman.920.1348067016.27098.python-list@python.org> <abu5c3FblbqU2@mid.individual.net> <cf126c38-759a-4d56-bd1d-98c54c1f9f16@u15g2000yql.googlegroups.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Wed, 19 Sep 2012 12:33:50 -0600 |
| Subject | Re: sum works in sequences (Python 3) |
| To | Python <python-list@python.org> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.935.1348079664.27098.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Wed, Sep 19, 2012 at 9:37 AM, Steve Howell <showell30@yahoo.com> 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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
sum works in sequences (Python 3) Franck Ditter <franck@ditter.org> - 2012-09-19 16:41 +0200
Re: sum works in sequences (Python 3) Joel Goldstick <joel.goldstick@gmail.com> - 2012-09-19 10:57 -0400
Re: sum works in sequences (Python 3) Neil Cerutti <neilc@norwich.edu> - 2012-09-19 14:57 +0000
Re: sum works in sequences (Python 3) Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-19 09:03 -0600
Re: sum works in sequences (Python 3) Neil Cerutti <neilc@norwich.edu> - 2012-09-19 15:06 +0000
Re: sum works in sequences (Python 3) Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-19 09:24 -0600
Re: sum works in sequences (Python 3) Steve Howell <showell30@yahoo.com> - 2012-09-19 08:37 -0700
Re: sum works in sequences (Python 3) Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-19 12:33 -0600
Re: sum works in sequences (Python 3) Steve Howell <showell30@yahoo.com> - 2012-09-19 11:43 -0700
Re: sum works in sequences (Python 3) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-19 16:14 +0000
Re: sum works in sequences (Python 3) Alister <alister.ware@ntlworld.com> - 2012-09-19 15:07 +0000
Re: sum works in sequences (Python 3) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-19 16:18 +0000
Re: sum works in sequences (Python 3) Terry Reedy <tjreedy@udel.edu> - 2012-09-19 14:49 -0400
Re: sum works in sequences (Python 3) Hans Mulder <hansmu@xs4all.nl> - 2012-09-20 00:25 +0200
csiph-web