Did I find the right examples for you? yes no

All Samples(12)  |  Call(0)  |  Derive(0)  |  Import(12)
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/m/2/M2Crypto-HEAD/examples/Zope/z2s.py   M2Crypto(Download)
            if not (client_home_stat[stat.ST_MODE]&01000):
                client_home_faults.append('does not have the sticky bit set')
            if client_home_stat[stat.ST_UID] != 0:
                client_home_faults.append('is not owned by root')
            if client_home_faults:

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

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

src/l/f/lfm-2.3/lfm/files.py   lfm(Download)
        size = st[stat.ST_SIZE]
    try:
        owner = pwd.getpwuid(st[stat.ST_UID])[0]
    except:
        owner = unicode(st[stat.ST_UID])
        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])
            try:
                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['size'] = statblock[stat.ST_SIZE]
	data['perms'] = stat.S_IMODE(mode)
	data['uid'] = statblock[stat.ST_UID]
	data['gid'] = statblock[stat.ST_GID]
	data['inode'] = statblock[stat.ST_INO]

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

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

src/h/a/hardlinker-0.5.3/hardlinker/tools.py   hardlinker(Download)
        'notimestamp' : stat.ST_MTIME,
        'nofilemode' : stat.ST_MODE,
        'nouid' : stat.ST_UID,
        'nogid' : stat.ST_GID,
    }
        '__noopt__': lambda x, y: x[stat.ST_SIZE] == y[stat.ST_SIZE],
        '__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],
        print "Already hardlinked: %s" % (not isAlreadyHardlinked(st1, st2))
        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]

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] )

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