[Python-Dev] Iterator version of contextlib.nested
Benjamin Peterson
benjamin at python.org
Sun Jun 14 16:24:46 CEST 2009
2009/6/13 Nick Coghlan <ncoghlan at gmail.com>:
> Hagen Fürstenau wrote:
>> I guess this is much too late for 3.1, but could we then at least
>> un-deprecate "contextlib.nested" for now? As it is, you get a
>> DeprecationWarning for something like
>>
>> with contextlib.nested(*my_managers):
>>
>> without any good way to get rid of it.
>
> I actually almost asked for that to be changed to a
> PendingDeprecationWarning when it was first added - Benjamin, do you
> mind if I downgrade this warning to a pending one post rc2?
Yes, I think that's a good idea. It will also help people who have to
use contextlib.nested() for backwards compatibility.
--
Regards,
Benjamin
More information about the Python-Dev
mailing list