[Numeric] column vector faster than row vector in mat multiply?

2005-03-04 Thread Zhang Le
r i in xrange(k): matrixmultiply(r, M) print time.time()-t, 'sec' print 'running %d iterations of matrix operation of column %d-vector' % (k, n) t = time.time() for i in xrange(k): matrixmultiply(M, c) print time.time()-t, 'sec' --code end-- Zhang Le

Replace single item in tkinter ListBox

2004-12-18 Thread Zhang Le
Hello, Is there a quick way to replace the content of a single item in tkinter's listbox? Currently my solution is to first delete the item, then insert a new item at the same position. I think there may be better way. Zhang Le -- http://mail.python.org/mailman/listinfo/python-list

Re: Replace single item in tkinter ListBox

2004-12-19 Thread Zhang Le
Thanks for the hint. But I did not try such *advance* techniques so far. Both Delete-then-insert and Insert-then-delete work for me. Interestingly, I found Delete-then-insert can cause some flicking when replacing items near bottom, while Insert-then-delete always works fine. Zhang Le -- http

extract news article from web

2004-12-22 Thread Zhang Le
m web site. Is anyone aware of general techniques for extracting web news? Or can point me to some falimiar projects. I have seen some search engines doing this, for example:http://news.ithaki.net/, but do not know the technique used. Any tips? Thanks in advance, Zhang Le -- http://mail.python.o

Re: extract news article from web

2004-12-22 Thread Zhang Le
te to extract certain fields from a web page. Unfortunately, it is not open source, so I can not look inside the blackbox.:-( Zhang Le -- http://mail.python.org/mailman/listinfo/python-list