Andrew Svetlov <[email protected]> added the comment:
I would say that if requests a designed from scratch more idiomatic way could be
with requests.Session() as session:
session.get('https://example.com/')
or
session = requests.Session()
session.get('https://example.com/')
session.close()
Like the recommended way to handle files.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36709>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com