M.-A. Lemburg wrote:
> On 2008-09-09 02:49, brett.cannon wrote:
>> Author: brett.cannon
>> Date: Tue Sep  9 02:49:16 2008
>> New Revision: 66321
>>
>> Log:
>> warnings.catch_warnings() now returns a list or None instead of the custom
>> WarningsRecorder object. This makes the API simpler to use as no special 
>> object
>> must be learned.
>>
>> Closes issue 3781.
>> Review by Benjamin Peterson.
> 
> This sounds a lot like a feature.
> 
> Why was it added just before RC1 ?

It's also a bug that was introduced by the late API changes made to
WarningsRecorder in r66135 (when WarningsRecorder was moved from
test.test_support to warnings to make it officially supported for use
outside the Python test suite, the API was also changed).

Instead of changing the API *again* could we please get the API reverted
back to the way it was for the two months prior to r66135 and only
change the location from test_support to warnings? (obviously, the use
of @contextmanager should still be removed since we don't particularly
want warnings to depend on contextlib).

Regards,
Nick.

-- 
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://www.boredomandlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to