Message193653
> > But how is that necessary for the use case? Your LoggerAdapter-
> > derived class could take the "existing class" as a constructor
> > parameter (*), then inject the required info in its overriden
> > process() method.
>
> If you can adapt an existing class to look sufficiently like a dict,
> that's all you need to do - there's no need to subclass
> LoggerAdapter and override process(). There might be cases where
> that's the easier option.
I am not talking about "adapting a class". I am taking about overriding
process() to do the adapting in a simpler way than in your example. |
|
Date |
User |
Action |
Args |
2013-07-24 14:49:52 | pitrou | set | recipients:
+ pitrou, vinay.sajip, docs@python |
2013-07-24 14:49:52 | pitrou | link | issue18541 messages |
2013-07-24 14:49:51 | pitrou | create | |
|