Message72937
On Tue, Sep 9, 2008 at 3:13 PM, Nick Coghlan <report@bugs.python.org> wrote:
>
> Nick Coghlan <ncoghlan@gmail.com> added the comment:
>
> No worries - the only reason I suggested full reversion at all is
> because I had temporarily forgotten why the relocation had become so
> necessary (i.e. we needed the feature ourselves in the main part of the
> standard library to avoid emitting spurious warnings).
>
> J.P.'s suggestion (basic functionality in warnings, with each group of
> users providing their own convenience API tailored to their own use
> cases) makes an awful lot of sense, which is why it is the model I am
> going to adopt.
>
Adopt how? As in just provide a context manager that copies and
restores the filter? That might be enough and then let test.support
have a subclass or another context manager that plugs in the whole
showwarning() implementation. Then everyone should be happy. |
|
Date |
User |
Action |
Args |
2008-09-10 02:35:50 | brett.cannon | set | recipients:
+ brett.cannon, barry, exarkun, ncoghlan, pitrou, benjamin.peterson |
2008-09-10 02:35:49 | brett.cannon | link | issue3781 messages |
2008-09-10 02:35:49 | brett.cannon | create | |
|