Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
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/l/i/lib-pyFreenet-staging-HEAD/fcp/freenetfs.py   lib-pyFreenet-staging(Download)
            'inode'  : info[stat.ST_INO],
            'dev'    : info[stat.ST_DEV],
            'nlink'  : info[stat.ST_NLINK],
            'uid'    : info[stat.ST_UID],
            'gid'    : info[stat.ST_GID],
            # yes, extract main items
            dev = statrec[stat.ST_DEV]
            nlink = statrec[stat.ST_NLINK]
            uid = statrec[stat.ST_UID]
            gid = statrec[stat.ST_GID]
        statrec[stat.ST_INO] = inode
        statrec[stat.ST_DEV] = dev
        statrec[stat.ST_NLINK] = nlink
        statrec[stat.ST_UID] = uid
        statrec[stat.ST_GID] = gid
 
        if attr == 'nlink':
            return self[stat.ST_NLINK]
 
        if attr == 'uid':
            self[stat.ST_DEV] = val
        elif attr == 'nlink':
            self[stat.ST_NLINK] = val
        elif attr == 'uid':
            self[stat.ST_UID] = val

src/l/o/LODGrefine-HEAD/lod2-google-refine/extensions/jython/module/MOD-INF/lib/jython/os.py   LODGrefine(Download)
      ('st_ino', _stat.ST_INO),
      ('st_dev', _stat.ST_DEV),
      ('st_nlink', _stat.ST_NLINK),
      ('st_uid', _stat.ST_UID),
      ('st_gid', _stat.ST_GID),

src/r/d/rdiff-backup-HEAD/rdiff_backup/rpath.py   rdiff-backup(Download)
	data['inode'] = statblock[stat.ST_INO]
	data['devloc'] = statblock[stat.ST_DEV]
	data['nlink'] = statblock[stat.ST_NLINK]
 
	if os.name == 'nt':

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/os.py   openvault-core(Download)
      ('st_ino', _stat.ST_INO),
      ('st_dev', _stat.ST_DEV),
      ('st_nlink', _stat.ST_NLINK),
      ('st_uid', _stat.ST_UID),
      ('st_gid', _stat.ST_GID),

src/l/f/lfm-2.3/lfm/files.py   lfm(Download)
        return (0, 0, 0, 0, 0, 0, 0, 0)
    else:
        return (st[stat.ST_NLINK], st[stat.ST_UID], st[stat.ST_GID],
                st[stat.ST_ATIME], st[stat.ST_MTIME], st[stat.ST_CTIME],
                st[stat.ST_DEV], st[stat.ST_INO])

src/p/y/pyJasper-HEAD/pyjasper/backend/lib/Lib/os.py   pyJasper(Download)
      ('st_ino', _stat.ST_INO),
      ('st_dev', _stat.ST_DEV),
      ('st_nlink', _stat.ST_NLINK),
      ('st_uid', _stat.ST_UID),
      ('st_gid', _stat.ST_GID),

src/c/o/com.pittypanda.plugins.couch-HEAD/couchapp/Lib/os.py   com.pittypanda.plugins.couch(Download)
      ('st_ino', _stat.ST_INO),
      ('st_dev', _stat.ST_DEV),
      ('st_nlink', _stat.ST_NLINK),
      ('st_uid', _stat.ST_UID),
      ('st_gid', _stat.ST_GID),

src/b/a/babble-HEAD/include/jython/Lib/os.py   babble(Download)
    ('st_ino', _stat.ST_INO),
    ('st_dev', _stat.ST_DEV),
    ('st_nlink', _stat.ST_NLINK),
    ('st_uid', _stat.ST_UID),
    ('st_gid', _stat.ST_GID),

src/g/r/GridBackup-HEAD/grid_backup/path.py   GridBackup(Download)
    data['perm'] = stat.S_IMODE(mode)
    data['ownr'] = "%d:%d" % (statblock[stat.ST_UID], statblock[stat.ST_GID])
    if (statblock[stat.ST_NLINK] > 1 and typ != 'dir'):
        data['inode'] = ( statblock[stat.ST_INO], statblock[stat.ST_DEV] )
 

src/b/r/brebis-0.9/brebis/checkbackups/checktree.py   brebis(Download)
    def __translate_type(self, __mode):
        '''Translate the type of the file to a generic name'''
        if stat.S_ISREG(__mode):
            if self.__fileinfo[stat.ST_NLINK] > 1:
                return 'l'

  1 | 2  Next