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/w/q/wq.db-0.5.0/rest/views.py   wq.db(Download)
            return Response(
                {'detail': 'Created'},
                status=status.HTTP_302_FOUND,
                headers={'Location': url}
            )

src/w/q/wq.db-HEAD/rest/views.py   wq.db(Download)
            return Response(
                {'detail': 'Created'},
                status=status.HTTP_302_FOUND,
                headers={'Location': url}
            )

src/w/q/wq.db-0.5.0/contrib/search/views.py   wq.db(Download)
    def auto_redirect(self, response):
        item = response.data['list'][0]
        return Response(
            status=status.HTTP_302_FOUND,
            data={'message': 'Found', 'search': self.search},

src/w/q/wq.db-HEAD/contrib/search/views.py   wq.db(Download)
    def auto_redirect(self, response):
        item = response.data['list'][0]
        return Response(
            status=status.HTTP_302_FOUND,
            data={'message': 'Found', 'search': self.search},

src/l/o/localground-HEAD/apps/site/tests/__init__.py   localground(Download)
			response = self.client_anonymous.get(url)
			self.assertIn(response.status_code, [
				status.HTTP_302_FOUND,
				status.HTTP_403_FORBIDDEN
			])

src/l/o/localground-HEAD/apps/site/tests/views/sharing_tests.py   localground(Download)
 
		#successfully redirected
		self.assertEqual(response.status_code, status.HTTP_302_FOUND)
 
		# re-query 
 
		#successfully redirected
		self.assertEqual(response.status_code, status.HTTP_302_FOUND)
 
		# re-query 

src/l/o/localground-HEAD/apps/site/tests/views/form_tests.py   localground(Download)
 
		#successfully redirected
		self.assertEqual(response.status_code, status.HTTP_302_FOUND)
 
		form = models.Form.objects.get(name=name)
 
		#successfully redirected
		self.assertEqual(response.status_code, status.HTTP_302_FOUND)
 
		# re-query 

src/d/j/django-oauth-api-0.3.5/oauth_api/tests/test_implicit.py   django-oauth-api(Download)
        response = self.client.post(reverse('oauth_api:authorize'), data=form_data)
 
        self.assertEqual(response.status_code, status.HTTP_302_FOUND)
 
        self.assertIn('http://localhost#', response['Location'])
        response = self.client.post(reverse('oauth_api:authorize'), data=form_data)
 
        self.assertEqual(response.status_code, status.HTTP_302_FOUND)
        self.assertIn('error=access_denied', response['Location'])
 
        response = self.client.post(reverse('oauth_api:authorize'), data=form_data)
 
        self.assertEqual(response.status_code, status.HTTP_302_FOUND)
        fragments = self.parse_fragments(response['Location'])
        access_token = fragments['access_token'].pop()

src/d/j/django-oauth-api-0.3.5/oauth_api/tests/test_authorization_code.py   django-oauth-api(Download)
        response = self.client.get(reverse('oauth_api:authorize'), data=query_string)
 
        self.assertEqual(response.status_code, status.HTTP_302_FOUND)
        self.assertIn('error=unauthorized_client', response['Location'])
 
        response = self.client.get(reverse('oauth_api:authorize'), data=query_string)
 
        self.assertEqual(response.status_code, status.HTTP_302_FOUND)
        self.assertIn('error=invalid_request', response['Location'])
 
        response = self.client.post(reverse('oauth_api:authorize'), data=form_data)
 
        self.assertEqual(response.status_code, status.HTTP_302_FOUND)
        self.assertIn('http://localhost?', response['Location'])
        self.assertIn('state=random_state_string', response['Location'])
        response = self.client.post(reverse('oauth_api:authorize'), data=form_data)
 
        self.assertEqual(response.status_code, status.HTTP_302_FOUND)
        self.assertIn('error=access_denied', response['Location'])
 
        response = self.client.post(reverse('oauth_api:authorize'), data=form_data)
 
        self.assertEqual(response.status_code, status.HTTP_302_FOUND)
        self.assertIn('http://localhost?error=unauthorized_client', response['Location'])