All Samples(6) | Call(0) | Derive(0) | Import(6)
int(x[, base]) -> integer Convert a string or number to an integer, if possible. A floating point argument will be truncated towards zero (this does not include a string representation of a floating point number!) When converting a string, use the optional base. It is an error to supply a base when converting a non-string. If base is zero, the proper base is guessed based on the string content. If the argument is outside the integer range a long object will be returned instead.
src/t/a/tablib-HEAD/tablib/packages/xlwt/ExcelFormulaLexer.py tablib(Download)
# -*- coding: windows-1252 -*- import sys from antlr import EOF, CommonToken as Tok, TokenStream, TokenStreamException import struct import ExcelFormulaParser from re import compile as recompile, match, LOCALE, UNICODE, IGNORECASE, VERBOSE
_re = recompile(
'(' + ')|('.join([i[0] for i in pattern_type_tuples]) + ')',
VERBOSE+LOCALE+IGNORECASE)
_toktype = [None] + [i[1] for i in pattern_type_tuples]
# need dummy at start because re.MatchObject.lastindex counts from 1
src/p/y/pyexcelerator-HEAD/trunk/pyExcelerator/ExcelFormulaLexer.py pyexcelerator(Download)
from antlr import EOF, CommonToken as Tok, TokenStream, TokenStreamException import struct import ExcelFormulaParser from re import compile as recompile, match, LOCALE, UNICODE, IGNORECASE int_const_pattern = recompile(r"\d+") flt_const_pattern = recompile(r"\d*\.\d+(?:[Ee][+-]?\d+)?") str_const_pattern = recompile(r'["][^"]*["]') #range2d_pattern = recompile(r"\$?[A-I]?[A-Z]\$?\d+:\$?[A-I]?[A-Z]\$?\d+") ref2d_pattern = recompile(r"\$?[A-I]?[A-Z]\$?\d+") true_pattern = recompile(r"TRUE", IGNORECASE) false_pattern = recompile(r"FALSE", IGNORECASE) name_pattern = recompile(r"[\.\w]+", LOCALE)
src/p/y/pyexcelerator-HEAD/pyExcelerator/ExcelFormulaLexer.py pyexcelerator(Download)
from antlr import EOF, CommonToken as Tok, TokenStream, TokenStreamException import struct import ExcelFormulaParser from re import compile as recompile, match, LOCALE, UNICODE, IGNORECASE int_const_pattern = recompile(r"\d+") flt_const_pattern = recompile(r"\d*\.\d+(?:[Ee][+-]?\d+)?") str_const_pattern = recompile(r'["][^"]*["]') #range2d_pattern = recompile(r"\$?[A-I]?[A-Z]\$?\d+:\$?[A-I]?[A-Z]\$?\d+") ref2d_pattern = recompile(r"\$?[A-I]?[A-Z]\$?\d+") true_pattern = recompile(r"TRUE", IGNORECASE) false_pattern = recompile(r"FALSE", IGNORECASE) name_pattern = recompile(r"[\.\w]+", LOCALE)
src/p/y/pyexcelerator-0-0.6.4a/pyExcelerator/ExcelFormulaLexer.py pyExcelerator(Download)
from antlr import EOF, CommonToken as Tok, TokenStream, TokenStreamException import struct import ExcelFormulaParser from re import compile as recompile, match, LOCALE, UNICODE, IGNORECASE int_const_pattern = recompile(r"\d+") flt_const_pattern = recompile(r"\d*\.\d+(?:[Ee][+-]?\d+)?") str_const_pattern = recompile(r'["][^"]*["]') #range2d_pattern = recompile(r"\$?[A-I]?[A-Z]\$?\d+:\$?[A-I]?[A-Z]\$?\d+") ref2d_pattern = recompile(r"\$?[A-I]?[A-Z]\$?\d+") true_pattern = recompile(r"TRUE", IGNORECASE) false_pattern = recompile(r"FALSE", IGNORECASE) name_pattern = recompile(r"[\.\w]+", LOCALE)
src/p/y/pyexcel-HEAD/src/ExcelFormulaLexer.py pyexcel(Download)
from antlr import EOF, CommonToken as Tok, TokenStream, TokenStreamException import struct import ExcelFormulaParser from re import compile as recompile, match, LOCALE, UNICODE, IGNORECASE int_const_pattern = recompile(r"\d+") flt_const_pattern = recompile(r"\d*\.\d+(?:[Ee][+-]?\d+)?") str_const_pattern = recompile(r'["][^"]*["]') #range2d_pattern = recompile(r"\$?[A-I]?[A-Z]\$?\d+:\$?[A-I]?[A-Z]\$?\d+") ref2d_pattern = recompile(r"\$?[A-I]?[A-Z]\$?\d+") true_pattern = recompile(r"TRUE", IGNORECASE) false_pattern = recompile(r"FALSE", IGNORECASE) name_pattern = recompile(r"[\.\w]+", LOCALE)
src/x/l/xlwt-0.7.2/xlwt/ExcelFormulaLexer.py xlwt(Download)
# -*- coding: windows-1252 -*- import sys from antlr import EOF, CommonToken as Tok, TokenStream, TokenStreamException import struct import ExcelFormulaParser from re import compile as recompile, match, LOCALE, UNICODE, IGNORECASE, VERBOSE
_re = recompile(
'(' + ')|('.join([i[0] for i in pattern_type_tuples]) + ')',
VERBOSE+LOCALE+IGNORECASE)
_toktype = [None] + [i[1] for i in pattern_type_tuples]
# need dummy at start because re.MatchObject.lastindex counts from 1