Re: is this data structure build-in or I'll have to write my own class?

2008-02-20 Thread mkPyVS
On Feb 20, 12:07 pm, thebjorn <[EMAIL PROTECTED]> wrote: > On Feb 20, 3:32 pm, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 20, 2008 8:15 AM, Larry Bates <[EMAIL PROTECTED]> wrote: > > > > Jorge Vargas wrote: > > > > I need a data structure that will let me do: > > > > > - attribute a

Re: regular expression dictionary search

2007-08-20 Thread mkPyVS
t is eaten only for creation of the class (most often) the 1st time. As a side note unless you are searching large buffers it is possibly more costly to compile into a re object then do a match with it as opposed to let the match object perform a compile a function level itself- if you use the class option above I would recommend storing the re.compiled versions of your patterns in the dictionary (everything is an object!) rather than the string repr and issuing a compile. mkPyVS -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
On May 23, 10:44 pm, mkPyVS <[EMAIL PROTECTED]> wrote: So the issue was that the min-size of the content panel actually limits the size of the listview control. Once the minsize attribute is modified in the listbook panels the listview can then be resized to be wider on callback or with a

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
On May 23, 1:47 pm, [EMAIL PROTECTED] wrote: > Wow! You sure like to post a lot! Sheesh! I subscribe to the wxPython > user's group and I don't see your post anywhere. Yeah sorry.. google groups was giving me repeated errors on post... frustration clicking took over and viola... 17 posts- my apolo

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
On May 23, 9:04 am, [EMAIL PROTECTED] wrote: > Which Python gui toolkit are you using? Tkinter, wxPython, pyQT? Are > you wanting the resize to happen programmatically, when the user > changes the app's size, both or what? > > More details would be helpful. > > Mike Sorry, copied from wxpython sub

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
On May 23, 9:04 am, [EMAIL PROTECTED] wrote: > Which Python gui toolkit are you using? Tkinter, wxPython, pyQT? Are > you wanting the resize to happen programmatically, when the user > changes the app's size, both or what? > > More details would be helpful. > > Mike Sorry, copied from wxpython sub

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
On May 23, 9:04 am, [EMAIL PROTECTED] wrote: > Which Python gui toolkit are you using? Tkinter, wxPython, pyQT? Are > you wanting the resize to happen programmatically, when the user > changes the app's size, both or what? > > More details would be helpful. > > Mike Sorry, copied from wxpython sub

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
On May 23, 9:04 am, [EMAIL PROTECTED] wrote: > Which Python gui toolkit are you using? Tkinter, wxPython, pyQT? Are > you wanting the resize to happen programmatically, when the user > changes the app's size, both or what? > > More details would be helpful. > > Mike Sorry, copied from wxpython sub

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
On May 23, 9:04 am, [EMAIL PROTECTED] wrote: > Which Python gui toolkit are you using? Tkinter, wxPython, pyQT? Are > you wanting the resize to happen programmatically, when the user > changes the app's size, both or what? > > More details would be helpful. > > Mike Sorry, copied from wxpython sub

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Resizing listbook's listview pane

2007-05-23 Thread mkPyVS
Sorry, copied from wxpython submit as well.. I'm using wxpython 2.8... Primariy I want the resize to happen programatically during object creation/post creation... I can worry about app size changes later. Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list

Resizing listbook's listview pane

2007-05-22 Thread mkPyVS
I'm having an issue I need help with. I want to resize the listview control in a listbook but have been unsuccessfull through setting the columnWidth of the 0'th column and trying to retrieve the listbooks sizer return's None Ideas? Thanks, -- http://mail.python.org/mailman/listinfo/python-l

Re: Indentifying the LAST occurrence of an item in a list

2007-04-06 Thread mkPyVS
On Apr 5, 6:37 pm, "John Machin" <[EMAIL PROTECTED]> wrote: >>> help(list.index) > Help on method_descriptor: > > index(...) > L.index(value, [start, [stop]]) -> integer -- return first index > of value > > I look forward to your next version. Great point! I was assuming the temp variable spac

Re: Indentifying the LAST occurrence of an item in a list

2007-04-05 Thread mkPyVS
Not sure below is better but it hacks at larger chunks (excuse the 10 second coding) m = [2,9,1,5,6,3,1,1,9,2] f = 1 temp = m location = m.index(f) gloc = location temp = m[location:] while 1: print(temp) try: location = temp.index(f) + 1 gloc += location except: break

Re: Memory testing in Python

2007-03-30 Thread mkPyVS
>While I have a great deal of interest in memory management, >my general reaction to your question as you've posed it is, >"Don't; concentrate for now on good Python style." I agree but for monitoring... I've had good luck with executing a popen to grab and parse output from ps -Af and pass it yo

Re: Optimization problem

2007-03-18 Thread mkPyVS
I would suggest taking a look at the python package networkx. It is a wonderfully created path optimization and presentation package which has a fair amount of extensabilty. Basic lowest cost path solutions should be able to solve your algorithmic needs here in polynomial time (Typically N**P time

Re: What's the best IDE?

2006-10-25 Thread mkPyVS
I perform python development for cross platform firmware integration and analysis on a daily basis and the IDE I use and recommend is Komodo from ActiveState. Our worldwide development group (30) has recently all purchased the professional version as it integrates with several version control syste

Re: Line by line execution of python code

2006-07-13 Thread mkPyVS
Try this... slightly more complex but get's the job done-> added some wait state in the user program/thread so it didn't kill the output stream... Enjoy import thread, sys, time def someUserProgram(mutexRef): while 1: mutexRef.acquire() print "I am a user p

Re: Flight search automation

2006-06-23 Thread mkPyVS
rom the original query w/ your new URL for the session result. Base URL= http://travel.travelocity.com/flights So now you would request http://travel.travelocity.com/flights/AirSearch.do?SEQ=11510863338485232006 George Sakkis wrote: > mkPyVS wrote: > > > Is there an http page redirect

Re: Flight search automation

2006-06-23 Thread mkPyVS
Is there an http page redirect call to the client once the java releases it's wait que? George Sakkis wrote: > I'm trying to use mechanize to fill in a "find a flight" form and then > get back the results, but I'm not sure how to make it wait until the > results page appears; the response after su