Making a note about using multiple `with`s #651

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@JensRantil
Contributor

Official Python documentation has this feature documented here:
http://docs.python.org/reference/compound_stmts.html#the-with-statement

Jens Rantil Making a note about using multiple `with`s
Official Python documentation has this feature documented here:
http://docs.python.org/reference/compound_stmts.html#the-with-statement
ffb551f
@bitprophet
Member

I'm iffy on this because it enters the "teach users Python" territory I want to avoid (it's not our job and opens a huge can of worms) but at the same time the preceding note about having to explicitly enable with in 2.5, is in the same general territory, so I only have half a leg to stand on :) I guess it can't hurt to add. Thanks!

@bitprophet bitprophet added a commit that referenced this pull request May 23, 2012
@bitprophet bitprophet Formatting tweaks re #651 139d591
@bitprophet bitprophet added a commit that referenced this pull request May 23, 2012
@bitprophet bitprophet Changelog re #651 9aad52c
@bitprophet bitprophet closed this May 23, 2012
@JensRantil
Contributor

Haha, yes :) At first I was going to make a pull request to add it to the fabric.context_managers.prefix(...) function, because it has nested with statements. But then I realized you were doing similar stuff in your note about 2.5, so I thought it would be better there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment