Re: Qustion about struct.unpack

2007-05-01 Thread eC
On Apr 30, 9:41 am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Mon, 30 Apr 2007 00:45:22 -0700, OhKyu Yoon wrote: > > Hi! > > I have a really long binary file that I want to read. > > The way I am doing it now is: > > > for i in xrange(N): # N is about 10,000,000 > > time = struct.unpack(

Re: How can i compare a string which is non null and empty

2007-04-01 Thread eC
On Apr 2, 12:22 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > how can i compare a string which is non null and empty? > > i look thru the string methods here, but cant find one which does it? > > http://docs.python.org/lib/string-methods.html#string-methods > > In java,I do this: > i

Is this a wxPython 2.8.0 bug with GetItemText method of wxTreeCtrl?

2007-04-01 Thread eC
I use a tree control in my application and was hoping to use use the GetItemText method to read the new label of the tree item after the user has edited it. So in the EVT_TREE_END_LABEL_EDIT event handler, i call this method but the old label (previous value before the edti) is returned. Is there s