-
Couldn't load subscription status.
- Fork 4.3k
feat(python): add term entry for 'with' keyword with syntax, examples… #7778
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
feat(python): add term entry for 'with' keyword with syntax, examples… #7778
Conversation
|
@mamtawardhani Please review |
Updated the documentation for the 'with' keyword in Python. Improved clarity by refining explanations and examples, and corrected method names.
Clarify return value description for context manager.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for a second review! 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
|
👋 @vansh2408 🎉 Your contribution(s) can be seen here: https://www.codecademy.com/resources/docs/python/keywords/with Please note it may take a little while for changes to become visible. |
Description
This PR adds a new term entry for the
withkeyword under the Python keywords section.The
withkeyword simplifies resource management by automatically handling setup and teardown actions for context-managed resources like files, network connections, or locks.Issue Solved
Closes #7738
Type of Change
Checklist
mainbranch.Issues Solvedsection.