[Python-3000] Pre-peps on raise and except changes (was: Warning for 2.6 and greater)

Nick Coghlan ncoghlan at gmail.com
Sun Feb 11 01:31:26 CET 2007


Collin Winter wrote:
> On 2/10/07, Phillip J. Eby <pje at telecommunity.com> wrote:
>> My thought is, 2.6 would pass all three arguments, 3.0 just one.
> 
> My only concern was that keeping the three-argument signature means
> one less thing to change when transitioning to 3.0. Anyone really
> concerned about their context managers working in 2.6 and 3.0 could
> just use a decorator to ensure compatibility, though, so count me in.

A lot of context managers will also adjust automatically when 
contextlib.contextmanager is updated to handle the change.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list