Re: A better way to split up a list

2006-05-08 Thread fidtz
Thanks very much, that is a far tidier solution!! -- http://mail.python.org/mailman/listinfo/python-list

Re: A better way to split up a list

2006-05-08 Thread Tim Chase
> Argh, embarassment on my part due to incomplete spec. > movelist is used to store a list of chess moves and > splitting it up in this way is so it can be printed in a > space that is 3 lines high but quite wide. Thus the way > the list grows as it is appended to in chopupmoves is > intended. Per

Re: A better way to split up a list

2006-05-08 Thread Larry Bates
[EMAIL PROTECTED] wrote: > The code below works fine, but it is less than nice to look at and > somewhat long winded. Is there a better way to do the docstring task? > This is the first working version, and can proabably be "compacted" a > bit (list comprehensions etc) but I am looking for a better

Re: A better way to split up a list

2006-05-08 Thread Larry Bates
[EMAIL PROTECTED] wrote: > The code below works fine, but it is less than nice to look at and > somewhat long winded. Is there a better way to do the docstring task? > This is the first working version, and can proabably be "compacted" a > bit (list comprehensions etc) but I am looking for a better

Re: A better way to split up a list

2006-05-08 Thread fidtz
Argh, embarassment on my part due to incomplete spec. movelist is used to store a list of chess moves and splitting it up in this way is so it can be printed in a space that is 3 lines high but quite wide. Thus the way the list grows as it is appended to in chopupmoves is intended. -- http://mail

Re: A better way to split up a list

2006-05-08 Thread John Machin
On 8/05/2006 10:45 PM, [EMAIL PROTECTED] wrote: > The code below works fine, but it is less than nice to look at and > somewhat long winded. Is there a better way to do the docstring task? > This is the first working version, and can proabably be "compacted" a > bit (list comprehensions etc) but I

Re: A better way to split up a list

2006-05-08 Thread Tim Chase
> The code below works fine, but it is less than nice to > look at and somewhat long winded. Is there a better way > to do the docstring task? This is the first working > version, and can proabably be "compacted" a bit (list > comprehensions etc) but I am looking for a better basic > approach. Any

A better way to split up a list

2006-05-08 Thread fidtz
The code below works fine, but it is less than nice to look at and somewhat long winded. Is there a better way to do the docstring task? This is the first working version, and can proabably be "compacted" a bit (list comprehensions etc) but I am looking for a better basic approach. Any help much ap