Of course, it would be handy for the "new()" method in the logging module to support a third parameter, allowing the "add('Header')" operation to be done as part of the object creation. Assuming it's an in-house module, that would be the approach that makes the most sense.
In reply to Re: Templatize Repeated code
by graff
in thread Templatize Repeated code
by narainhere
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |