Skip to content
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

bpo-30266: support "= None" pattern in AbstractContextManager #1448

Merged
merged 7 commits into from
Jun 9, 2017

Conversation

JelleZijlstra
Copy link
Member

No description provided.

@mention-bot
Copy link

@JelleZijlstra, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ncoghlan, @berkerpeksag and @Yhg1s to be potential reviewers.

Copy link
Member

@berkerpeksag berkerpeksag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a note to Misc/NEWS?

@JelleZijlstra
Copy link
Member Author

Done, thanks for the review.

@ilevkivskyi
Copy link
Member

It looks like a fourth merge is required...

@gvanrossum
Copy link
Member

Pinging @berkerpeksag -- is this now to your satisfaction? Could we get it in 3.6.3? (I.e. before Monday June 12.)

@gvanrossum
Copy link
Member

This seems simple enough, I'm merging it.

@gvanrossum gvanrossum merged commit 57161aa into python:master Jun 9, 2017
@gvanrossum
Copy link
Member

@Mariatta Can you help backporting this to 3.6?

@Mariatta Mariatta self-assigned this Jun 9, 2017
Mariatta pushed a commit to Mariatta/cpython that referenced this pull request Jun 10, 2017
…ythonGH-1448)

contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958..
(cherry picked from commit 57161aa)
Mariatta added a commit that referenced this pull request Jun 10, 2017
… (GH-2054)

contextlib.AbstractContextManager now supports anti-registration
by setting __enter__ = None or __exit__ = None, following the pattern
introduced in bpo-25958..
(cherry picked from commit 57161aa)
@Mariatta Mariatta removed their assignment Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants