[FRPythoneers] Class factory
Theodore A. Roth
troth at verinet.com
Thu Mar 28 11:31:11 MST 2002
I do something along those lines for the regression suite of my simulator
The regress.py.in is the engine which uses the apply() function and the code of interest starts here:
129 # Loop through all attributes of test_module
130 for test_name in test_names:
131 # If attribute is not a test case, skip it.
132 if test_name[:5] != 'test_':
It may not be pretty, but it does what I need it to do.
On Thu, 28 Mar 2002 10:59:23 -0700
Bob Gailer <ramrom at earthling.net> wrote:
> Learning Python, p179, describes how to implement class factories in
> Python, but gives no explanation as to what a factory is good for or why
> one would want to do that. Since I have no background in factories it
> leaves me in the dark.
> So - what are class factories good for? Where can I find a non-trivial
> Bob Gailer
> mailto:ramrom at earthling.net
> 303 442 2625
> This message sent by the FRPythoneers mailing list.
> Unsubscribe: echo unsubscribe |
> FRPythoneers-request at lists.community.tummy.com URL:
More information about the FRPythoneers