Colors for Rows

Victor Subervi victorsubervi at gmail.com
Wed Apr 30 11:57:44 EDT 2008


Thank you all. You helped clean up my code. The stupid mistake was in where
I set the initial value of the variable z.
Victor

On Tue, Apr 29, 2008 at 3:20 PM, J. Cliff Dyer <jcd at sdf.lonestar.org> wrote:

> On Tue, 2008-04-29 at 15:39 -0400, D'Arcy J.M. Cain wrote:
> > On Tue, 29 Apr 2008 15:03:23 -0400
> > "J. Cliff Dyer" <jcd at sdf.lonestar.org> wrote:
> > > Or, if you aren't sure how many colors you'll be using, try the more
> > > robust:
> > >
> > > bg[z % len(bg)]
> >
> > Good point although I would have calculated the length once at the
> > start rather than each time through the loop.
> >
>
> Good catch.  Thanks.  What's that they say about eyes and bugs?
>
> Cheers,
> Cliff
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080430/67eaa151/attachment.html>


More information about the Python-list mailing list