Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

enable config parsers to be used as context managers#388

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Byron merged 1 commit intogitpython-developers:masterfromboidolr:config_as_context_manager
Feb 20, 2016
Merged

enable config parsers to be used as context managers#388

Byron merged 1 commit intogitpython-developers:masterfromboidolr:config_as_context_manager
Feb 20, 2016

Conversation

@boidolr
Copy link
Contributor

If used as context managers, the parsers will automatically release their file locks. This was mentioned in#333 and seems like a good thing to have, as you can't forget to callrelease that way.
Another nice thing might be to use__enter__ to re-acquire locks if necessary, so that the readers can be used in multiple contexts.

if used as context managers, the parsers will automatically release their file locks.
Byron added a commit that referenced this pull requestFeb 20, 2016
feat(config-parsers): enable config parsers to be used as context managers
@ByronByron merged commitfcca77a intogitpython-developers:masterFeb 20, 2016
@Byron
Copy link
Member

Awesome, many thanks !

@ByronByron added this to thev1.0.3 - Fixes milestoneFeb 20, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@boidolr@Byron

[8]ページ先頭

©2009-2025 Movatter.jp