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_IFDIR
        if kw.get('ischr', False):
            mode |= stat.S_IFCHR
        if kw.get('isblk', False):
            mode |= stat.S_IFBLK
            mode |= stat.S_IFDIR
        if kw.pop('ischr', False):
            mode |= stat.S_IFCHR
        if kw.pop('isblk', False):
            mode |= stat.S_IFBLK
        elif attr == 'ischr':
            if val:
                self[stat.ST_MODE] |= stat.S_IFCHR
            else:
                self[stat.ST_MODE] &= ~stat.S_IFCHR

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

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

src/s/a/salt-2014.1.3/salt/utils/find.py   salt(Download)
 
_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',
               stat.S_IFCHR: 'c',

src/s/a/salt-HEAD/salt/utils/find.py   salt(Download)
 
_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',
               stat.S_IFCHR: 'c',

src/s/a/salt-thin-HEAD/salt/utils/find.py   salt-thin(Download)
 
_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',
               stat.S_IFCHR: 'c',

src/f/o/FotoShareN9-HEAD/1.6.1/fotoshare/opt/FotoShareN9/plugins/sftp/libs/paramiko/sftp_attr.py   FotoShareN9(Download)
            if kind == stat.S_IFIFO:
                ks = 'p'
            elif kind == stat.S_IFCHR:
                ks = 'c'
            elif kind == stat.S_IFDIR:

src/f/o/FotoShareN9-HEAD/1.6.1/fotoshare/opt/FotoShareN9/plugins/scp/libs/paramiko/sftp_attr.py   FotoShareN9(Download)
            if kind == stat.S_IFIFO:
                ks = 'p'
            elif kind == stat.S_IFCHR:
                ks = 'c'
            elif kind == stat.S_IFDIR:

src/g/l/glusterflow-HEAD/translator/debugging_pieces/debug-trace.py   glusterflow(Download)
                type_bit = stat.S_IFBLK
        elif filetype == IA_IFCHR:
                type_bit = stat.S_IFCHR
        elif filetype == IA_IFIFO:
                type_bit = stat.S_IFIFO

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