Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)
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/e/o/eopayment-0.0.22/eopayment/tipi.py   eopayment(Download)
# -*- coding: utf-8 -*-
 
from decimal import Decimal, ROUND_DOWN
from common import (PaymentCommon, PaymentResponse, URL, PAID, DENIED,
        CANCELED, ERROR)
            params['URLCL'] = next_url
        url = '%s?%s' % (self.service_url, urlencode(params))
        return transaction_id, URL, url
 
    def response(self, query_string):

src/e/o/eopayment-0.0.22/eopayment/spplus.py   eopayment(Download)
 
import Crypto.Cipher.DES
from common import (PaymentCommon, URL, PaymentResponse, RECEIVED, ACCEPTED,
        PAID, ERROR)
 
            query))
        logger.debug('full url %s' % url)
        return reference, URL, url
 
    def response(self, query_string, logger=LOGGER):

src/e/o/eopayment-0.0.22/eopayment/dummy.py   eopayment(Download)
    from urlparse import parse_qs
 
from common import PaymentCommon, URL, PaymentResponse, PAID, ERROR
 
__all__ = [ 'Payment' ]
                del query[key]
        url = '%s?%s' % (SERVICE_URL, urllib.urlencode(query))
        return transaction_id, URL, url
 
    def response(self, query_string, logger=LOGGER):

src/e/o/eopayment-0.0.22/eopayment/systempayv2.py   eopayment(Download)
from gettext import gettext as _
 
from common import PaymentCommon, PaymentResponse, URL, PAID, ERROR
from cb import CB_RESPONSE_CODES
 
        transaction_id = '%s_%s' % (fields[VADS_TRANS_DATE], transaction_id)
        self.logger.debug('%s transaction id: %s', __name__, transaction_id)
        return transaction_id, URL, url
 
    def response(self, query_string):

src/e/o/eopayment-0.0.22/eopayment/__init__.py   eopayment(Download)
import os.path
 
from common import URL, HTML
 
__all__ = ['Payment', 'URL', 'HTML', '__version__', 'SIPS', 'SYSTEMPAY',