Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
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/b/c/bcfg2-old-HEAD/src/lib/Client/Tools/POSIX.py   bcfg2-old(Download)
 
# map between dev_type attribute and stat constants
device_map = {'block': stat.S_IFBLK,
              'char': stat.S_IFCHR,
              'fifo': stat.S_IFIFO}

src/l/i/lib-pyFreenet-staging-HEAD/fcp/freenetfs.py   lib-pyFreenet-staging(Download)
            mode |= stat.S_IFCHR
        if kw.get('isblk', False):
            mode |= stat.S_IFBLK
        if kw.get('isreg', False):
            mode |= stat.S_IFREG
            mode |= stat.S_IFCHR
        if kw.pop('isblk', False):
            mode |= stat.S_IFBLK
        if kw.pop('isreg', False):
            mode |= stat.S_IFREG
        elif attr == 'isblk':
            if val:
                self[stat.ST_MODE] |= stat.S_IFBLK
            else:
                self[stat.ST_MODE] &= ~stat.S_IFBLK

src/m/e/mercurial-2.9.1/mercurial/pure/osutil.py   Mercurial(Download)
        return statmod.S_IFLNK
    if statmod.S_ISBLK(mode):
        return statmod.S_IFBLK
    if statmod.S_ISCHR(mode):
        return statmod.S_IFCHR

src/h/g/hg-HEAD/mercurial/pure/osutil.py   hg(Download)
        return statmod.S_IFLNK
    if statmod.S_ISBLK(mode):
        return statmod.S_IFBLK
    if statmod.S_ISCHR(mode):
        return statmod.S_IFCHR

src/s/a/salt-2014.1.3/salt/utils/find.py   salt(Download)
_REQUIRES_CONTENTS = 4
 
_FILE_TYPES = {'b': stat.S_IFBLK,
               'c': stat.S_IFCHR,
               'd': stat.S_IFDIR,
               'f': stat.S_IFREG,
               'l': stat.S_IFLNK,
               'p': stat.S_IFIFO,
               's': stat.S_IFSOCK,
               stat.S_IFBLK: 'b',

src/s/a/salt-HEAD/salt/utils/find.py   salt(Download)
_REQUIRES_CONTENTS = 4
 
_FILE_TYPES = {'b': stat.S_IFBLK,
               'c': stat.S_IFCHR,
               'd': stat.S_IFDIR,
               'f': stat.S_IFREG,
               'l': stat.S_IFLNK,
               'p': stat.S_IFIFO,
               's': stat.S_IFSOCK,
               stat.S_IFBLK: 'b',

src/s/a/salt-thin-HEAD/salt/utils/find.py   salt-thin(Download)
_REQUIRES_CONTENTS = 4
 
_FILE_TYPES = {'b': stat.S_IFBLK,
               'c': stat.S_IFCHR,
               'd': stat.S_IFDIR,
               'f': stat.S_IFREG,
               'l': stat.S_IFLNK,
               'p': stat.S_IFIFO,
               's': stat.S_IFSOCK,
               stat.S_IFBLK: 'b',

src/f/o/FotoShareN9-HEAD/1.6.1/fotoshare/opt/FotoShareN9/plugins/sftp/libs/paramiko/sftp_attr.py   FotoShareN9(Download)
            elif kind == stat.S_IFDIR:
                ks = 'd'
            elif kind == stat.S_IFBLK:
                ks = 'b'
            elif kind == stat.S_IFREG:

src/f/o/FotoShareN9-HEAD/1.6.1/fotoshare/opt/FotoShareN9/plugins/scp/libs/paramiko/sftp_attr.py   FotoShareN9(Download)
            elif kind == stat.S_IFDIR:
                ks = 'd'
            elif kind == stat.S_IFBLK:
                ks = 'b'
            elif kind == stat.S_IFREG:

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/paramiko/sftp_attr.py   antisocial(Download)
            elif kind == stat.S_IFDIR:
                ks = 'd'
            elif kind == stat.S_IFBLK:
                ks = 'b'
            elif kind == stat.S_IFREG:

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