[Python-checkins] r78758 - in python/trunk: Lib/test/string_tests.py Lib/test/test_ascii_formatd.py Lib/test/test_fileio.py Lib/test/test_index.py Lib/test/test_random.py Lib/test/test_support.py Lib/test/test_unicode.py Misc/NEWS
Nick Coghlan
ncoghlan at gmail.com
Mon Mar 8 11:55:05 CET 2010
Eric Smith wrote:
> Florent XICLUNA wrote:
>> 2010/3/7 Nick Coghlan:
>>> The default here needs to be "quiet=True" so that it gives the same
>>> behaviour as the old one if you don't provide any arguments.
>>
>> The test failure (with quiet=False) will highlight when the context
>> manager "check_warnings()" is no longer needed. It displays an helpful
>> message to identify which warnings are no longer raised.
>> Obviously these new features will not be backported to 2.6.
>
> I think the issue is that we don't want to break compatibility, even
> with major versions (2.6 -> 2.7), unless we have good reason to and it's
> discussed on python-dev.
Yep. This is a documented API with a certain existing behaviour. We
can't cause it to raise exceptions in user's code without a really good
reason (and I don't see any such reason here - defaulting to the old
behaviour instead of the new behaviour is straightforward).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-checkins
mailing list