replacing __dict__ with an OrderedDict

Arnaud Delobelle arnodel at gmail.com
Fri Jan 6 16:32:31 EST 2012


On 6 January 2012 11:44, Peter Otten <__peter__ at web.de> wrote:
> class Loader(unittest.TestLoader):
>    def getTestCaseNames(self, testCaseClass):
>        """Return a sequence of method names found within testCaseClass
>        sorted by co_firstlineno.
>        """

That's a clever trick!

-- 
Arnaud



More information about the Python-list mailing list