Re: dynamic unittest

2006-07-17 Thread Oleg Paraschenko
Hello Peter, thanks a lot. I've overlooked this simple way to create the right closure. -- Oleg -- http://mail.python.org/mailman/listinfo/python-list

dynamic unittest

2006-07-16 Thread Oleg Paraschenko
Hello, I decided to re-use functionality of "unittest" module for my purposes. More precisely, I have a list of folders. For each folder, code should enter to the folder, execute a command and assert the output. It's reasonable to use "unittest" here, but the problem is that "unittest" doesn't sup

Re: Comparing 2 similar strings?

2005-05-23 Thread Oleg Paraschenko
Hello, Scott David Daniels <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > William Park wrote: > > How do you compare 2 strings, and determine how much they are "close" to > > each other? > > Here's a really weird idea: Measure the size difference between the > pair of strin

Re: Comparing 2 similar strings?

2005-05-23 Thread Oleg Paraschenko
Hello William, William Park <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > How do you compare 2 strings, and determine how much they are "close" to > each other? > ... If your strings are between 1 and 16 Kb, look at GetReuse SDK: http://getreuse.com/sdk/ It has Perl and

Re: Multithreading tkinter question

2004-12-16 Thread Oleg Paraschenko
Hello John, > Mark, > > I tried your code snippet with Python 2.3.4. Worked fine. Only problem was > that the program fell off the end and terminated before the second thread > could open the Tkinter window. So I added these lines at the end to make the > main thread wait:- > > from msvcrt import