in reply to Templatize Repeated code
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.
|
|---|