Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60591
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.023 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'duplicate': 0.07; 'versions,': 0.07; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pulling': 0.16; 'sublist': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'question': 0.24; 'possibly': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'have,': 0.30; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'easier': 0.31; 'probably': 0.32; 'received:google.com': 0.35; 'add': 0.35; 'list': 0.37; 'easiest': 0.38; 'nov': 0.38; 'window': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; '2013': 0.98 |
| 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:to :content-type; bh=3oQLxJ8KQFcIAeMc6w8/8XcGb5fAKzTCLGgZJ8ebJUM=; b=z0G6UNBhxTN8wxeg+6QWiJWFrlxGBXGC/eyzS9V3++tVpNRE3z883Le5VW13JUJYfu Q4dS1vg4e1d8TerH51jbFyIdBJFxvnFXisfjmnEdRCfRDNNzGsIM2Uj+Noot5xj/Z82r BzvG1l6fazyj8QUN1pniQ2q+HsQt502b8BlSACurvy/WgR3K0zhFV15qxrNte6zO6t8i t9uFNcYmpigTJC3zukwdnX6khFWATn0m9DLZqfT0rACDzAqmVZEjkYZScqSNEyiUmWm7 g6d2TD2kskeInCB1kj36GwWXV3NpiHz4vWJOLmKD5AZGDZ33R2P208xduTFVkBq94gG8 04DQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.68.28.231 with SMTP id e7mr4272516pbh.180.1385549634132; Wed, 27 Nov 2013 02:53:54 -0800 (PST) |
| In-Reply-To | <35a56651-33b3-454e-a936-439196989d3b@googlegroups.com> |
| References | <35a56651-33b3-454e-a936-439196989d3b@googlegroups.com> |
| Date | Wed, 27 Nov 2013 21:53:54 +1100 |
| Subject | Re: Wrapping around a list |
| From | Chris Angelico <rosuav@gmail.com> |
| To | 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3288.1385549643.18130.python-list@python.org> (permalink) |
| Lines | 9 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1385549643 news.xs4all.nl 15910 [2001:888:2000:d::a6]:42683 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:60591 |
Show key headers only | View raw
On Wed, Nov 27, 2013 at 9:46 PM, <amjadcsu@gmail.com> wrote: > So the question i am asking , how can i add wrapping around sublist in my sliding window function. By the look of what you now have, the easiest way would probably be to duplicate the list before you slide. So instead of working on "LEQN", you work on "LEQNLEQN" - or possibly "LEQNLEQ", or other shortened versions, if it's easier than pulling out the duplicates. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Wrapping around a list amjadcsu@gmail.com - 2013-11-27 02:46 -0800
Re: Wrapping around a list Chris Angelico <rosuav@gmail.com> - 2013-11-27 21:53 +1100
Re: Wrapping around a list Amjad Syed <amjadcsu@gmail.com> - 2013-11-27 03:07 -0800
Re: Wrapping around a list Chris Angelico <rosuav@gmail.com> - 2013-11-27 22:14 +1100
Re: Wrapping around a list Amjad Syed <amjadcsu@gmail.com> - 2013-11-27 10:14 -0800
Re: Wrapping around a list Ned Batchelder <ned@nedbatchelder.com> - 2013-11-27 06:26 -0500
Re: Wrapping around a list Neil Cerutti <mr.cerutti@gmail.com> - 2013-11-27 08:33 -0500
Re: Wrapping around a list Peter Pearson <ppearson@nowhere.invalid> - 2013-11-27 17:42 +0000
Re: Wrapping around a list rusi <rustompmody@gmail.com> - 2013-11-27 08:12 -0800
csiph-web