Re: Is it better to extend a class, or do something repetitious in the main part of a program?

2010-04-21 Thread Vinay Sajip
On Apr 19, 3:45 pm, J dreadpiratej...@gmail.com wrote: First, before I get farther, Is there a way for theloggingmodule to natively handle lists and dict objects whenlogging? e.g. take this {'key1':'val1','key2':'val2'} and have it logged like this: INFO: key1: val1 INFO: key2: val2 If

Is it better to extend a class, or do something repetitious in the main part of a program?

2010-04-19 Thread J
First, before I get farther, Is there a way for the logging module to natively handle lists and dict objects when logging? e.g. take this {'key1':'val1','key2':'val2'} and have it logged like this: INFO: key1: val1 INFO: key2: val2 If I pass the dict or list directly to the logger, it is