Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
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/p/y/pymacadmin-HEAD/utilities/diskimage_unittesting/tests/example_plist_test.py   pymacadmin(Download)
  def testOwnerGroupMode(self):
    """test owner, group and mode of original file."""
    orig_imageinfo_stat = os.stat(self.orig_imageinfo_file)
    owner = orig_imageinfo_stat[stat.ST_UID]
    group = orig_imageinfo_stat[stat.ST_GID]

src/l/i/lib-pyFreenet-staging-HEAD/fcp/freenetfs.py   lib-pyFreenet-staging(Download)
            'nlink'  : info[stat.ST_NLINK],
            'uid'    : info[stat.ST_UID],
            'gid'    : info[stat.ST_GID],
            'size'   : info[stat.ST_SIZE],
            'atime'  : info[stat.ST_ATIME],
            nlink = statrec[stat.ST_NLINK]
            uid = statrec[stat.ST_UID]
            gid = statrec[stat.ST_GID]
            size = statrec[stat.ST_SIZE]
        statrec[stat.ST_NLINK] = nlink
        statrec[stat.ST_UID] = uid
        statrec[stat.ST_GID] = gid
        statrec[stat.ST_SIZE] = len(self.stream.getvalue())
        if attr == 'gid':
            return self[stat.ST_GID]
        if attr == 'size':
            self[stat.ST_UID] = val
        elif attr == 'gid':
            self[stat.ST_GID] = val
        elif attr == 'size':
            self[stat.ST_SIZE] = val

src/s/h/shastity-HEAD/src/shastity/filesystem.py   shastity(Download)
        props['uid']                 = statinfo[stat.ST_UID]
        props['gid']                 = statinfo[stat.ST_GID]
        props['size']                = statinfo[stat.ST_SIZE]
        props['atime']               = statinfo[stat.ST_ATIME]

src/l/f/lfm-2.3/lfm/files.py   lfm(Download)
        owner = unicode(st[stat.ST_UID])
        group = grp.getgrgid(st[stat.ST_GID])[0]
        group = unicode(st[stat.ST_GID])
        return (0, 0, 0, 0, 0, 0, 0, 0)
        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])
                st = os.lstat(src)
                os.chown(dest, st[stat.ST_UID], st[stat.ST_GID])
                shutil.copymode(src, dest)
                shutil.copystat(src, dest)

src/r/d/rdiff-backup-HEAD/rdiff_backup/rpath.py   rdiff-backup(Download)
	data['perms'] = stat.S_IMODE(mode)
	data['uid'] = statblock[stat.ST_UID]
	data['gid'] = statblock[stat.ST_GID]
	data['inode'] = statblock[stat.ST_INO]
	data['devloc'] = statblock[stat.ST_DEV]

src/l/o/LODGrefine-HEAD/lod2-google-refine/extensions/jython/module/MOD-INF/lib/jython/os.py   LODGrefine(Download)
      ('st_nlink', _stat.ST_NLINK),
      ('st_uid', _stat.ST_UID),
      ('st_gid', _stat.ST_GID),
      ('st_size', _stat.ST_SIZE),
      ('st_atime', _stat.ST_ATIME),

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/os.py   openvault-core(Download)
      ('st_nlink', _stat.ST_NLINK),
      ('st_uid', _stat.ST_UID),
      ('st_gid', _stat.ST_GID),
      ('st_size', _stat.ST_SIZE),
      ('st_atime', _stat.ST_ATIME),

src/h/a/hardlinker-0.5.3/hardlinker/tools.py   hardlinker(Download)
        'nofilemode' : stat.ST_MODE,
        'nouid' : stat.ST_UID,
        'nogid' : stat.ST_GID,
        '__noopt__': lambda x, y: x[stat.ST_SIZE] != 0,
        'nouid': lambda x, y: x[stat.ST_UID] == y[stat.ST_UID],
        'nogid': lambda x, y: x[stat.ST_GID] == y[stat.ST_GID],
        'notimestamp': lambda x, y: x[stat.ST_MTIME] == y[stat.ST_MTIME],
        '__noopt__': lambda x, y: x[stat.ST_DEV] == y[stat.ST_DEV],
        print "Modes:", st1[stat.ST_MODE], st2[stat.ST_MODE]
        print "UIDs:", st1[stat.ST_UID], st2[stat.ST_UID]
        print "GIDs:", st1[stat.ST_GID], st2[stat.ST_GID]
        print "SIZE:", st1[stat.ST_SIZE], st2[stat.ST_SIZE]
        print "MTIME:", st1[stat.ST_MTIME], st2[stat.ST_MTIME]

src/g/r/GridBackup-HEAD/grid_backup/path.py   GridBackup(Download)
    data['type'] = typ
    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/p/y/pyJasper-HEAD/pyjasper/backend/lib/Lib/os.py   pyJasper(Download)
      ('st_nlink', _stat.ST_NLINK),
      ('st_uid', _stat.ST_UID),
      ('st_gid', _stat.ST_GID),
      ('st_size', _stat.ST_SIZE),
      ('st_atime', _stat.ST_ATIME),

  1 | 2 | 3 | 4 | 5  Next