Did I find the right examples for you? yes no

All Samples(56)  |  Call(0)  |  Derive(0)  |  Import(56)
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)
            'issock' : stat.S_ISSOCK(mode),
            'mode'   : mode,
            'inode'  : info[stat.ST_INO],
            'dev'    : info[stat.ST_DEV],
            'nlink'  : info[stat.ST_NLINK],
 
        statrec[stat.ST_MODE] |= mode
        statrec[stat.ST_INO] = inode
        statrec[stat.ST_DEV] = dev
        statrec[stat.ST_NLINK] = nlink
 
        if attr == 'inode':
            return self[stat.ST_INO]
 
        if attr == 'dev':

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

src/l/o/LODGrefine-HEAD/lod2-google-refine/extensions/jython/module/MOD-INF/lib/jython/os.py   LODGrefine(Download)
class stat_result:
 
    _stat_members = (
      ('st_mode', _stat.ST_MODE),
      ('st_ino', _stat.ST_INO),

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/os.py   openvault-core(Download)
class stat_result:
 
    _stat_members = (
      ('st_mode', _stat.ST_MODE),
      ('st_ino', _stat.ST_INO),

src/l/f/lfm-2.3/lfm/files.py   lfm(Download)
        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)
class stat_result:
 
    _stat_members = (
      ('st_mode', _stat.ST_MODE),
      ('st_ino', _stat.ST_INO),

src/c/o/com.pittypanda.plugins.couch-HEAD/couchapp/Lib/os.py   com.pittypanda.plugins.couch(Download)
class stat_result:
 
    _stat_members = (
      ('st_mode', _stat.ST_MODE),
      ('st_ino', _stat.ST_INO),

src/b/a/babble-HEAD/include/jython/Lib/os.py   babble(Download)
class stat_result:
 
  _stat_members = (
    ('st_mode', _stat.ST_MODE),
    ('st_ino', _stat.ST_INO),

src/g/r/GridBackup-HEAD/grid_backup/path.py   GridBackup(Download)
    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] )
 
    if typ != 'sym' and typ != 'dev':

src/h/a/hardlinker-0.5.3/hardlinker/tools.py   hardlinker(Download)
def isAlreadyHardlinked(st1, st2):
    """ True is two files have the same inode and are on the same device """
    result = (
        (st1[stat.ST_INO] == st2[stat.ST_INO]) and # Inodes equal
        (st1[stat.ST_DEV] == st2[stat.ST_DEV])     # Devices equal

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