We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the following script:
import socket with socket.create_connection(('google.com', 80)) as s: pass
With the regular standard library socket (PY3 only), this works fine. If the library is monkey patched, though, I get the following:
(py36) $ python test.py Traceback (most recent call last): File "test.py", line 6, in <module> with socket.create_connection(('google.com', 80)) as s: AttributeError: __enter__
The green version of socket seems to be missing the context manager __enter__ and __exit__ methods.
socket
__enter__
__exit__
The text was updated successfully, but these errors were encountered:
socket: context manager support in Python 3
b149d2e
Fixes eventlet#430
98c55b8
socket: context manager support
73b4dfa
b303787
Fixes #430
No branches or pull requests
Consider the following script:
With the regular standard library socket (PY3 only), this works fine. If the library is monkey patched, though, I get the following:
The green version of
socket
seems to be missing the context manager__enter__
and__exit__
methods.The text was updated successfully, but these errors were encountered: