This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients docs@python, pitrou, vinay.sajip
Date 2013-07-24.14:49:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1838590296.18469092.1374677386057.JavaMail.root@zimbra10-e2.priv.proxad.net>
In-reply-to <1374676407.42.0.435809757838.issue18541@psf.upfronthosting.co.za>
Content
> > 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.
History
Date User Action Args
2013-07-24 14:49:52pitrousetrecipients: + pitrou, vinay.sajip, docs@python
2013-07-24 14:49:52pitroulinkissue18541 messages
2013-07-24 14:49:51pitroucreate