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/z/a/zamboni-HEAD/mkt/developers/api_payments.py   zamboni(Download)
                log.error('Client error creating Bango account; %s' % e)
                return Response(e.content,
                                status=status.HTTP_500_INTERNAL_SERVER_ERROR)
            except HttpServerError as e:
                log.error('Error creating Bango payment account; %s' % e)
                return Response(_(u'Could not connect to payment server.'),
                               status=status.HTTP_500_INTERNAL_SERVER_ERROR)

src/t/r/treeherder-service-HEAD/vendor/rest_framework/exceptions.py   treeherder-service(Download)
    Subclasses should provide `.status_code` and `.detail` properties.
    """
    status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
    default_detail = ''
 

src/d/j/djangorestframework-2.3.13/rest_framework/exceptions.py   djangorestframework(Download)
    Subclasses should provide `.status_code` and `.default_detail` properties.
    """
    status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
    default_detail = ''
 

src/d/j/django-rest-framework-HEAD/rest_framework/exceptions.py   django-rest-framework(Download)
    Subclasses should provide `.status_code` and `.default_detail` properties.
    """
    status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
    default_detail = ''
 

src/l/i/lightforum-HEAD/rest_framework/exceptions.py   lightforum(Download)
    Subclasses should provide `.status_code` and `.default_detail` properties.
    """
    status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
    default_detail = ''
 

src/j/u/jukebox-0.4.1/jukebox/jukebox_core/views.py   jukebox(Download)
        except Exception, e:
            print e
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
 
        except Exception, e:
            print e
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
    def delete(self, request, song_id):
            return Response(status=status.HTTP_404_NOT_FOUND)
        except:
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
 
        except Exception, e:
            print e
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
 
        except Exception, e:
            print e
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
    def delete(self, request, song_id):

src/f/r/freesound-HEAD/apiv2/exceptions.py   freesound(Download)
class ServerErrorException(APIException):
    detail = None
    status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
 
    def __init__(self, msg="Server error"):

src/j/u/jukebox-HEAD/jukebox/jukebox_core/views.py   jukebox(Download)
        except Exception, e:
            print e
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
 
        except Exception, e:
            print e
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
    def delete(self, request, song_id):
            return Response(status=status.HTTP_404_NOT_FOUND)
        except:
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
 
        except Exception, e:
            print e
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
 
        except Exception, e:
            print e
            return Response(status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
    def delete(self, request, song_id):

src/a/t/atmosphere-HEAD/api/volume.py   atmosphere(Download)
        if not success:
            return failure_response(
                status.HTTP_500_INTERNAL_SERVER_ERROR,
                'Volume creation failed. Contact support')
        # Volume creation succeeded

src/r/e/researchcompendia-HEAD/companionpages/api/views.py   researchcompendia(Download)
            return Response({'message': 'We could not complete the verification request and' +
                ' the administrators have been notified'},
                status=status.HTTP_500_INTERNAL_SERVER_ERROR)
 
    def get_object(self, pk):

  1 | 2  Next