Brett Cannon <[EMAIL PROTECTED]> added the comment: On Tue, Sep 9, 2008 at 3:13 PM, Nick Coghlan <[EMAIL PROTECTED]> wrote: > > Nick Coghlan <[EMAIL PROTECTED]> 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. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3781> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com