Re: SetUp functions for multiple test cases

2009-01-20 Thread brooklineTom
On Jan 20, 9:57 am, Roy Smith wrote: > In article > <45b0bf56-673c-40cd-a27a-62f9943d9...@r41g2000prr.googlegroups.com>, > Georg Schmid wrote: > > > I've just started working with unittests and already hit a snag. I > > couldn't find out how to implement a setup function, that is executed > > on

Re: executing multiple functions in background simultaneously

2009-01-14 Thread brooklineTom
> The disadvantage of threads in Python (CPython, actually) is that > there's the GIL (Global Interpreter Lock), so you won't get any speed > advantage if the threads are mostly processor-bound. On a single processor machine with compute-bound threads, I don't the GIL is the bottleneck. No matter

Re: Parsing Excel spreadsheets

2009-01-07 Thread brooklineTom
On Jan 2, 7:04 pm, John Machin wrote: > On Jan 3, 2:01 am, brooklineTom wrote: > > > > My point was that however the original XLS files were created or > acquired, the first step in your solution involves converting the XLS > file to "XML Spreadsheet" format, whic

Re: Parsing Excel spreadsheets

2009-01-02 Thread brooklineTom
On Dec 31 2008, 9:56 am, John Machin wrote: > On Dec 31 2008, 4:02 pm, brooklineTom wrote: > > > andyh...@gmail.com wrote: > > > Hi, > > > > Can anybody recommend an approach for loading and parsing Excel > > > spreadsheets in Python. Any well known/r

Re: Parsing Excel spreadsheets

2008-12-30 Thread brooklineTom
andyh...@gmail.com wrote: > Hi, > > Can anybody recommend an approach for loading and parsing Excel > spreadsheets in Python. Any well known/recommended libraries for this? > > The only thing I found in a brief search was > http://www.lexicon.net/sjmachin/xlrd.htm, > but I'd rather get some more i

Re: Deeper tracebacks?

2008-12-11 Thread brooklineTom
7; This is *exactly* what I was seeking. I appreciate all the responses, and especially appreciate the pointer from R.Bernstein. Thx, Tom On Dec 11, 4:49 am, [EMAIL PROTECTED] (R. Bernstein) wrote: > brooklineTom <[EMAIL PROTECTED]> writes: > > I want my exception handler to repo

Re: Deeper tracebacks?

2008-12-10 Thread brooklineTom
On Dec 10, 10:49 pm, "Chris Rebert" <[EMAIL PROTECTED]> wrote: > On Wed, Dec 10, 2008 at 3:50 PM, brooklineTom <[EMAIL PROTECTED]> wrote: > > On Dec 10, 5:03 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > >> En W

Re: Deeper tracebacks?

2008-12-10 Thread brooklineTom
On Dec 10, 5:03 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 10 Dec 2008 16:59:16 -0200, brooklineTom <[EMAIL PROTECTED]> > escribió: > > > I want my exception handler to report the method that originally > > raised an exception, at t

Deeper tracebacks?

2008-12-10 Thread brooklineTom
I want my exception handler to report the method that originally raised an exception, at the deepest level in the call-tree. Let give an example. import sys, traceback class SomeClass: def error(self): """Raises an AttributeError exception.""" int(3).zork() def perform_(se

Re: class super method

2008-04-01 Thread brooklineTom
On Mon, 31 Mar 2008 21:41:37 -0500, Ed Leafe <[EMAIL PROTECTED]> wrote: >On Mar 31, 2008, at 5:58 PM, George Sakkis wrote: > >>> is there any tutorial for super method (when/how to use it)? >>> >>> or maybe someone could explain me how it works? >>> >>> thx >> >> Super is one of the dark corners o

Smalltalk-style "senders" and "implementors"

2008-03-31 Thread brooklineTom
I'm wondering if anyone has coded up a way to do Smalltalk-style runtime "senders" and "implementors" for python methods. For senders, I think the idea is to traverse the module space and collect, for each method, the names of any methods or functions it calls. In Smalltalk, the workhorse is "Comp