• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(2689)  |  Call(2592)  |  Derive(0)  |  Import(97)
atoi(s [,base]) -> int

Return the integer represented by the string s in the given
base, which defaults to 10.  The string s must consist of one
or more digits, possibly preceded by a sign.  If base is 0, it
is chosen from the leading characters of s, 0 for octal, 0x or
0X for hexadecimal.  If base is 16, a preceding 0x or 0X is
accepted.

        def atoi(s , base=10):
    """atoi(s [,base]) -> int

    Return the integer represented by the string s in the given
    base, which defaults to 10.  The string s must consist of one
    or more digits, possibly preceded by a sign.  If base is 0, it
    is chosen from the leading characters of s, 0 for octal, 0x or
    0X for hexadecimal.  If base is 16, a preceding 0x or 0X is
    accepted.

    """
    return _int(s, base)
        


src/t/o/Toolserver-0.4.1/samples/ServerManager.py   Toolserver(Download)
import hashlib
from xml.sax.handler import ContentHandler
from thread import allocate_lock
from string import atof, atoi
 
from Toolserver.Tool import registerTool
from Toolserver.CRAMUtils import OnlyRPCCRAMTool
		file.close()
		return [self._createToken(),
			atof(load1), atof(load5), atof(load15),
			processes, atoi(maxpid)
		]
 
	loadavg_signature = ('typens:listResult', 'typens:cramToken')

src/m/o/mobile-manager-HEAD/trunk/src/MobileDevice.py   mobile-manager(Download)
def hex2bin(str):
    from string import atoi
    bin = ['0000','0001','0010','0011',
           '0100','0101','0110','0111',
           '1000','1001','1010','1011',
           '1100','1101','1110','1111']
    aa = ''
    for i in range(len(str)):
        aa += bin[atoi(str[i],base=16)]

src/m/o/mobile-manager-HEAD/src/MobileDevice.py   mobile-manager(Download)
def hex2bin(str):
    from string import atoi
    bin = ['0000','0001','0010','0011',
           '0100','0101','0110','0111',
           '1000','1001','1010','1011',
           '1100','1101','1110','1111']
    aa = ''
    for i in range(len(str)):
        aa += bin[atoi(str[i],base=16)]

src/q/u/quintagroup.captcha.core-0.2.4/quintagroup/captcha/core/utils.py   quintagroup.captcha.core(Download)
    import hashlib as md5
except ImportError:
    import md5
from string import atoi
from random import randint
 
from DateTime import DateTime
def toStr(s):
    return s and chr(atoi(s[:2], base=16)) + toStr(s[2:]) or ''
 

src/d/i/digest-HEAD/lib/reportlab/platypus/para.py   digest(Download)
def handleSpecialCharacters(engine, text, program=None):
    from paraparser import greeks
    from string import whitespace, atoi, atoi_error
    standard={'lt':'<', 'gt':'>', 'amp':'&'}
    # add space prefix if space here
    if text[0:1] in whitespace:
        program.append(" ")
                if name[0]=='#':
                    try:
                        if name[1] == 'x':
                            n = atoi(name[2:], 16)
                        else:
                            n = atoi(name[1:])
                    except atoi_error:

src/p/r/productiontrack-HEAD/pt1/tools/reportlab/platypus/para.py   productiontrack(Download)
def handleSpecialCharacters(engine, text, program=None):
    from paraparser import greeks
    from string import whitespace, atoi, atoi_error
    standard={'lt':'<', 'gt':'>', 'amp':'&'}
    # add space prefix if space here
    if text[0:1] in whitespace:
        program.append(" ")
                if name[0]=='#':
                    try:
                        if name[1] == 'x':
                            n = atoi(name[2:], 16)
                        else:
                            n = atoi(name[1:])
                    except atoi_error:

src/w/s/wsfuzzer-HEAD/trunk/WSFuzzer/reportlab/platypus/para.py   wsfuzzer(Download)
def handleSpecialCharacters(engine, text, program=None):
    from paraparser import greeks
    from string import whitespace, atoi, atoi_error
    standard={'lt':'<', 'gt':'>', 'amp':'&'}
    # add space prefix if space here
    if text[0:1] in whitespace:
        program.append(" ")
                if name[0]=='#':
                    try:
                        if name[1] == 'x':
                            n = atoi(name[2:], 16)
                        else:
                            n = atoi(name[1:])
                    except atoi_error:

src/p/r/productiontrack-HEAD/tools/reportlab/platypus/para.py   productiontrack(Download)
def handleSpecialCharacters(engine, text, program=None):
    from paraparser import greeks
    from string import whitespace, atoi, atoi_error
    standard={'lt':'<', 'gt':'>', 'amp':'&'}
    # add space prefix if space here
    if text[0:1] in whitespace:
        program.append(" ")
                if name[0]=='#':
                    try:
                        if name[1] == 'x':
                            n = atoi(name[2:], 16)
                        else:
                            n = atoi(name[1:])
                    except atoi_error:

src/w/s/wsfuzzer-HEAD/WSFuzzer/reportlab/platypus/para.py   wsfuzzer(Download)
def handleSpecialCharacters(engine, text, program=None):
    from paraparser import greeks
    from string import whitespace, atoi, atoi_error
    standard={'lt':'<', 'gt':'>', 'amp':'&'}
    # add space prefix if space here
    if text[0:1] in whitespace:
        program.append(" ")
                if name[0]=='#':
                    try:
                        if name[1] == 'x':
                            n = atoi(name[2:], 16)
                        else:
                            n = atoi(name[1:])
                    except atoi_error:

src/m/w/mwlib.ext-0.12.3/upstream-src/src/reportlab/platypus/para.py   mwlib.ext(Download)
def handleSpecialCharacters(engine, text, program=None):
    from paraparser import greeks
    from string import whitespace, atoi, atoi_error
    standard={'lt':'<', 'gt':'>', 'amp':'&'}
    # add space prefix if space here
    if text[0:1] in whitespace:
        program.append(" ")
                if name[0]=='#':
                    try:
                        if name[1] == 'x':
                            n = atoi(name[2:], 16)
                        else:
                            n = atoi(name[1:])
                    except atoi_error:

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next