Skip to content

implement nested using contextmanager #86

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ploxiln
Copy link
Owner

@ploxiln ploxiln commented Mar 15, 2025

A re-implementation of nested for Python 3, should be more future-proof

Stealthii and others added 2 commits March 15, 2025 00:58
A reimplementation of nested for Python 3 from 43cdd22, using the
already imported contextmanager from contextlib.

This should silence linter warnings about the implementation method, but
also be Python 3.4+ compatible and more future proof for changes in
later Python versions.
@ploxiln
Copy link
Owner Author

ploxiln commented Mar 15, 2025

not sure if this is really needed, the sub-classing of ExitStack seems pretty simple

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.

2 participants