On Tue, Feb 7, 2012 at 6:08 AM, Yury Selivanov firstname.lastname@example.org wrote:
Well, native syntax would be much useful, but ContextStack seems like a decent workaround. Will it be included in the stdlib (py3.3)?
Most likely (I'm the primary maintainer of contextlib, so it's basically my call).
Feedback on what it's like to use in practice would definitely help with that - I put it up on PyPI as contextlib2 so people could try it out and help me avoid repeating the mistakes we made with nested() (which was an error prone bug trap).
-- Nick Coghlan | email@example.com | Brisbane, Australia