This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asvetlov
Recipients asvetlov, christian.heimes, tomchristie, yselivanov
Date 2019-05-29.13:13:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559135635.6.0.733107670227.issue36709@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-05-29 13:13:55asvetlovsetrecipients: + asvetlov, christian.heimes, tomchristie, yselivanov
2019-05-29 13:13:55asvetlovsetmessageid: <1559135635.6.0.733107670227.issue36709@roundup.psfhosted.org>
2019-05-29 13:13:55asvetlovlinkissue36709 messages
2019-05-29 13:13:55asvetlovcreate