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

All Samples(130)  |  Call(1)  |  Derive(3)  |  Import(126)
long(x[, base]) -> integer

Convert a string or number to a long 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.

src/a/l/alexandria-HEAD/src/alexandria/sessions/db/models.py   alexandria(Download)
        ('Float', lambda v: types.FloatType(v)), 
        ('Int', lambda v: types.IntType(v)), 
        ('List', lambda v: simplejson.loads(v)), 
        ('Long', lambda v: types.LongType(v)), 
        ('None', lambda v: None), 
        ('String', lambda v: types.StringType(v)), 
        ('Tuple', lambda v: tuple(simplejson.loads(v))), 

src/z/o/zope.app.twisted-3.5.0/src/twisted/spread/jelly.py   zope.app.twisted(Download)
from types import IntType
from types import TupleType
from types import ListType
from types import LongType
from types import FloatType
from types import FunctionType
from types import MethodType

src/z/e/zenoss-HEAD/trunk/Products/PluggableAuthService/UserPropertySheet.py   zenoss(Download)
"""
from types import IntType
from types import FloatType
from types import LongType
from types import TupleType
from types import ListType
from types import InstanceType

src/b/a/bases-HEAD/trunk/bases/thirdparty/jecode.py   bases(Download)
    return r
 
 
from types import NoneType, IntType, LongType, FloatType, DictType, ListType
from types import TupleType, StringType, UnicodeType, BooleanType
 
# Encode integers

src/z/e/zenoss-HEAD/Products/PluggableAuthService/UserPropertySheet.py   zenoss(Download)
"""
from types import IntType
from types import FloatType
from types import LongType
from types import TupleType
from types import ListType
from types import InstanceType

src/b/a/bases-HEAD/bases/thirdparty/jecode.py   bases(Download)
    return r
 
 
from types import NoneType, IntType, LongType, FloatType, DictType, ListType
from types import TupleType, StringType, UnicodeType, BooleanType
 
# Encode integers

src/b/t/btqueue-HEAD/trunk/btqueue/BitTornado/bencode.py   btqueue(Download)
# Written by Petru Paler, Uoti Urpala, Ross Cohen and John Hoffman
# see LICENSE.txt for license information
 
from types import IntType, LongType, StringType, ListType, TupleType, DictType
try:
    from types import BooleanType
except ImportError:

src/g/h/gherkin-3/gherkin.py   gherkin(Download)
 
"""
 
from types import IntType, TupleType, StringType, FloatType, LongType, ListType, DictType, NoneType, BooleanType, UnicodeType, ComplexType
SetType = type(set())
from struct import pack, unpack
from cStringIO import StringIO

src/b/t/btqueue-HEAD/btqueue/BitTornado/bencode.py   btqueue(Download)
# Written by Petru Paler, Uoti Urpala, Ross Cohen and John Hoffman
# see LICENSE.txt for license information
 
from types import IntType, LongType, StringType, ListType, TupleType, DictType
try:
    from types import BooleanType
except ImportError:

src/b/a/bases-HEAD/trunk/bases/thirdparty/rencode.py   bases(Download)
        raise ValueError
    return r
 
from types import StringType, IntType, LongType, DictType, ListType, TupleType, FloatType, NoneType
 
def encode_int(x, r):
    if 0 <= x < INT_POS_FIXED_COUNT:

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