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

All Samples(60)  |  Call(0)  |  Derive(0)  |  Import(60)
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/c/l/clearsilver-0.10.1/clearsilver/python/examples/trans/trans.py   clearsilver(Download)
 
 
        if Translator._HTML_TAG_RE is None:
            Translator._HTML_TAG_RE = re.compile(Translator._HTML_TAG_REGEX, re.MULTILINE | re.DOTALL)
        if Translator._HTML_CMT_RE is None:
            Translator._HTML_CMT_RE = re.compile(Translator._HTML_CMT_REGEX, re.MULTILINE | re.DOTALL)
        if Translator._CS_TAG_RE is None:
            Translator._CS_TAG_RE = re.compile(Translator._CS_TAG_REGEX, re.MULTILINE | re.DOTALL)

src/p/y/PyAMF-HEAD/doc/tutorials/examples/actionscript/google_appengine/simplejson/scanner.py   PyAMF(Download)
"""
Iterator based sre token scanner
"""
import sre_parse, sre_compile, sre_constants
from sre_constants import BRANCH, SUBPATTERN
from re import VERBOSE, MULTILINE, DOTALL
import re
 
__all__ = ['Scanner', 'pattern']
 
FLAGS = (VERBOSE | MULTILINE | DOTALL)

src/p/y/PyAMF-HEAD/doc/tutorials/examples/actionscript/google_appengine/simplejson/decoder.py   PyAMF(Download)
except:
    _speedups = None
 
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
 
def _floatconstants():
    import struct

src/p/y/pyjamas-desktop-HEAD/pyjamas-webkit/examples/jsonrpc/public/services/simplejson/decoder.py   pyjamas-desktop(Download)
 
from simplejson.scanner import Scanner, pattern
 
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
 
def _floatconstants():
    import struct

src/p/y/pyjamas-desktop-HEAD/pyjamas-web/examples/jsonrpc/public/services/simplejson/decoder.py   pyjamas-desktop(Download)
 
from simplejson.scanner import Scanner, pattern
 
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
 
def _floatconstants():
    import struct

src/p/y/pyjamas-desktop-HEAD/pyjamas-khtml/examples/jsonrpc/public/services/simplejson/decoder.py   pyjamas-desktop(Download)
 
from simplejson.scanner import Scanner, pattern
 
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
 
def _floatconstants():
    import struct

src/b/a/badger-lib-HEAD/packages/pyparsing/docs/examples/LAparser.py   badger-lib(Download)
   writing, respectively.
   """
   pattern = r'\[\[\s*(.*?)\s*\]\]'
   eqn = re.compile(pattern,re.DOTALL)
   s = infilep.read()
   def parser(mo): 
      ccode = parse(mo.group(1))

src/m/a/mandible-HEAD/example/simplejson/scanner.py   mandible(Download)
 
NUMBER_RE = re.compile(
    r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?',
    (re.VERBOSE | re.MULTILINE | re.DOTALL))
 
def py_make_scanner(context):
    parse_object = context.parse_object

src/d/i/diksel-HEAD/trunk/thirdparty/pyjamasdev/examples/jsonrpc/public/services/simplejson/decoder.py   diksel(Download)
 
from simplejson.scanner import Scanner, pattern
 
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
 
def _floatconstants():
    import struct

src/b/a/badger-lib-HEAD/packages/pyparsing/examples/LAparser.py   badger-lib(Download)
   writing, respectively.
   """
   pattern = r'\[\[\s*(.*?)\s*\]\]'
   eqn = re.compile(pattern,re.DOTALL)
   s = infilep.read()
   def parser(mo): 
      ccode = parse(mo.group(1))

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