Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/t/r/treeherder-service-HEAD/vendor/rest_framework/exceptions.py   treeherder-service(Download)
class MethodNotAllowed(APIException):
    status_code = status.HTTP_405_METHOD_NOT_ALLOWED
    default_detail = "Method '%s' not allowed."
 
    def __init__(self, method, detail=None):

src/d/j/djangorestframework-2.3.13/rest_framework/exceptions.py   djangorestframework(Download)
class MethodNotAllowed(APIException):
    status_code = status.HTTP_405_METHOD_NOT_ALLOWED
    default_detail = "Method '%s' not allowed."
 
    def __init__(self, method, detail=None):

src/d/j/django-rest-framework-HEAD/rest_framework/exceptions.py   django-rest-framework(Download)
class MethodNotAllowed(APIException):
    status_code = status.HTTP_405_METHOD_NOT_ALLOWED
    default_detail = "Method '%s' not allowed."
 
    def __init__(self, method, detail=None):

src/z/a/zamboni-HEAD/mkt/developers/api_payments.py   zamboni(Download)
    def partial_update(self, request, *args, **kwargs):
        return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED)
 
    def update(self, request, *args, **kwargs):
        self.object = self.get_object()

src/l/i/lightforum-HEAD/rest_framework/exceptions.py   lightforum(Download)
class MethodNotAllowed(APIException):
    status_code = status.HTTP_405_METHOD_NOT_ALLOWED
    default_detail = "Method '%s' not allowed."
 
    def __init__(self, method, detail=None):

src/t/a/taiga-back-HEAD/taiga/base/exceptions.py   taiga-back(Download)
class NotSupported(BaseException):
    status_code = status.HTTP_405_METHOD_NOT_ALLOWED
    default_detail = _("Method not supported for this endpoint.")
 
 

src/d/j/djaodjin-saas-HEAD/saas/api/charges.py   djaodjin-saas(Download)
        except InsufficientFunds as insufficient_funds_err:
            return Response({"detail": str(insufficient_funds_err)},
                status=status.HTTP_405_METHOD_NOT_ALLOWED)
        return super(ChargeRefundAPIView, self).get(request, *args, **kwargs)
 

src/o/n/onepercentclub-site-HEAD/apps/wallposts/tests.py   onepercentclub-site(Download)
        self.client.login(email=self.another_user.email, password='password')
        response = self.client.post(second_reaction_detail_url, {'text': 'Can I update this reaction?'})
        self.assertEqual(response.status_code, status.HTTP_405_METHOD_NOT_ALLOWED, response.data)