New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@JensRantil

JensRantil commented May 23, 2012

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

@bitprophet

This comment has been minimized.

Member

bitprophet commented May 23, 2012

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 added a commit that referenced this pull request May 23, 2012

bitprophet added a commit that referenced this pull request May 23, 2012

@bitprophet bitprophet closed this May 23, 2012

@JensRantil

This comment has been minimized.

JensRantil commented May 23, 2012

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