Re: rectangles, or cavases, or ... ?

2009-04-20 Thread FogleBird
On Apr 20, 5:29 pm, Alan G Isaac wrote: > I need to display many (e.e., 2000) small squares whose colors are udpated > each time a computation is complete. > > One approach is to put rectangles on a single canvas. > Another approach is to put many canvases in a single frame. > Another approach is

Re: list subsetting

2009-01-21 Thread FogleBird
On Jan 21, 5:22 pm, culpritNr1 wrote: > Thank you Fogelbird and Jeff. > > I actually tried to find out if such function existed. I did > > >>> help("count") > > no Python documentation found for 'count' > > Anyway. More than counting, I am interested in list subsetting in a simple > way. Forget ab

Re: list subsetting

2009-01-21 Thread FogleBird
On Jan 21, 4:53 pm, culpritNr1 wrote: > Hello All, > > Say I have a list like this: > > a = [0 , 1, 3.14, 20, 8, 8, 3.14] > > Is there a simple python way to count the number of 3.14's in the list in > one statement? > > In R I do like this > > a = c(0 , 1, 3.14, 20, 8, 8, 3.14) > > length( a[ a[]