Re: Passing arguments to subclasses

2008-06-24 Thread Michael Mabin
But if you couldn't find readily available confirmation of what you presumed to be true, weren't the responses showing how you might come that answer using the interpreter helpful, rather than harsh? The Python interpreter is the shizzit. On Mon, Jun 23, 2008 at 12:17 PM, John Dann <[EMAIL PROTECT

Re: Passing arguments to subclasses

2008-06-23 Thread Scott David Daniels
John Dann wrote: ... the answer might have been of the 'yes, but' kind. Well, if you really care, there is a 'yes, but' answer, but it only has to do with multiple inheritance, and hence is a bit esoteric for the issues you are currently addressing. This is not meant to be a tease; I think it w

Re: Passing arguments to subclasses

2008-06-23 Thread John Dann
Thanks for the responses - they're much appreciated. And I understand the slight impatience with questions that could possibly be answered without recourse to a forum - I'm usually in the opposite position of fielding many newbie questions in a forum in a completely different field! But don't be t

Re: Passing arguments to subclasses

2008-06-23 Thread Gary Herron
John Dann wrote: May I ask a simple newbie question, which I presume is true, but for which I can't readily find confirmation: Let's say I have a parent class with an __init__ method explicitly defined: class ParentClass(object): def __init__(self, keyword1, keyword2): e

Re: Passing arguments to subclasses

2008-06-23 Thread Bruno Desthuilliers
John Dann a écrit : May I ask a simple newbie question, which I presume is true, but for which I can't readily find confirmation: Let's say I have a parent class with an __init__ method explicitly defined: class ParentClass(object): def __init__(self, keyword1, keyword2):

Re: Passing arguments to subclasses of unittest.TestCase

2007-11-27 Thread Diez B. Roggisch
Tom Harris schrieb: > Hi, > > Is there a way to pass arguments to TestCases when running tests? I have > a test suite that need to be configured slightly differently for 3 > different products, and rather than do a hack I wondered if there was a > canonical way to do it. > > I _know_ that py.t