2 ms·
Here's another prime python example. The response object in the requests library has a truthiness equivalent to request success. Can easily trip you to with `re
by np_tedious 7y ago
Here's another prime python example. The response object in the requests library has a truthiness equivalent to request success. Can easily trip you to with `res and res.content`
https://github.com/psf/requests/blob/master/requests/models.py#L668 https://github.com/psf/requests/blob/master/requests/models....
https://stackoverflow.com/questions/48347290/why-does-requests-response-object-bool-check-for-200-status-400 https://stackoverflow.com/questions/48347290/why-does-reques...