Re: Very weird behavior that's driving me crazy

2006-08-16 Thread Pupeno
Nevermind, it was fixed. Thanks. Pupeno wrote: > Hello, > I am experiencing a weird behavior that is driving me crazy. I have module > called Sensors containing, among other things: > > class Manager: > def getStatus(self): > print "getStatus(self=%s)&qu

Very weird behavior that's driving me crazy

2006-08-16 Thread Pupeno
output of the method it calls). - Why doesn't the SensorSingleton.getStatus() return the return value of manager.getStatus(), it's a very straight forward call to it and return it. Thank you. -- Pupeno <[EMAIL PROTECTED]> (http://pupeno.com) -- http://mail.python.org/mailman/listinfo/python-list

Hierarchical unit tests

2006-08-01 Thread Pupeno
Hello, Having A(unittest.TestCase) and B(A), the unittests framework seems not to run A's test when testing B, right ? If so, is there any way to 'fix' it ? that is, make all tests in A, also run for B ? Thanks. -- Pupeno <[EMAIL PROTECTED]> (http://pupeno.com) -- http://ma

Jumping over in the class hierarchy

2006-08-01 Thread Pupeno
. -- Pupeno <[EMAIL PROTECTED]> (http://pupeno.com) -- http://mail.python.org/mailman/listinfo/python-list

Re: Worarrounding hardcoded Option class in optparse in Python 2.3

2006-07-27 Thread Pupeno
For the record, the copy and paste fix seems to have worked, so far. Pupeno wrote: > Hello, > I am doing some extreme use of optparse, that is, extending it as > explained on > http://docs.python.org/lib/optparse-other-reasons-to-extend-optparse.html > I have subclassed OptionPa

Worarrounding hardcoded Option class in optparse in Python 2.3

2006-07-26 Thread Pupeno
. -- Pupeno <[EMAIL PROTECTED]> (http://pupeno.com) [1] That would be: def _add_help_option(self): self.add_option("-h", "--help", action="help", help=_("show this help message and

Re: Using super()

2006-07-19 Thread Pupeno
Laszlo Nagy wrote: > Pupeno írta: >> Hello, >> I have a class called MyConfig, it is based on Python's >> ConfigParser.ConfigParser. >> It implements add_section(self, section), which is also implemented on >> ConfigParser.ConfigParser, which I want to ca

Using super()

2006-07-19 Thread Pupeno
g to do (other than calling the specific class that happens to be the parent today) ? Thanks. -- Pupeno <[EMAIL PROTECTED]> (http://pupeno.com) -- http://mail.python.org/mailman/listinfo/python-list