News for hackers. Stuff that matters.
Re:On incomplete HTTP reads and the requests library in Python by icebraining on Monday April 23, 2018 @03:42AM (#16901273)
Response.status_code is an int

No, it acts like an int; whether it is one (should be) irrelevant :)

    class StatusCode(int):
        @property
        def ok(self):
            return 200 <= self < 300

There are no comments on this comment yet.