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/p/y/pyant-0.0.5/pyant/extensions/file.py   pyant(Download)
        'S_IWUSR' : stat.S_IWUSR,
        'S_IXUSR' : stat.S_IXUSR,
        'S_IRWXG' : stat.S_IRWXG,
        'S_IRGRP' : stat.S_IRGRP,
        'S_IWGRP' : stat.S_IWGRP,

src/d/i/DIRAC-HEAD/Core/Security/VOMS.py   DIRAC(Download)
    requiredFilePerms = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH
    #777
    allPerms = stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO
    vomsesPaths = []
    if 'DIRAC_VOMSES' in os.environ:

src/r/e/release-HEAD/pyutils/config.py   release(Download)
# Commonly used permission settings
 
all_rwx = stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO # 777
shell_perms = stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH # 755
data_perms = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH # 644
dir_perms = stat.S_IRWXU | stat.S_IRWXG | stat.S_IROTH | stat.S_IXOTH # 775

src/d/i/DIRAC-HEAD/Resources/Computing/glexecComputingElement.py   DIRAC(Download)
    try:
      os.makedirs( sticky )
      os.chmod( sticky, stat.S_ISVTX | stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO )
    except Exception, excp :
      return S_ERROR( "Could not create %s: %s" % ( sticky, excp ) )

src/s/h/shrink-1.1.1/shrink/utils.py   shrink(Download)
        # change read and write permissions on temp file
        owner_rw = (stat.S_IRWXU & ~stat.S_IXUSR)
        group_rw = (stat.S_IRWXG & ~stat.S_IXGRP & ~stat.S_IWGRP)
        others_rw = (stat.S_IRWXO & ~stat.S_IXOTH & ~stat.S_IWOTH)
        os.chmod(tmp_file_name, owner_rw | group_rw | others_rw)

src/c/m/cmssh-HEAD/src/config/cmssh_extension.py   cmssh(Download)
            and not bool(mode & stat.S_IXUSR) \
            and not bool(mode & stat.S_IRWXO) \
            and not bool(mode & stat.S_IRWXG)
    return cond
 
    cond = bool(mode & stat.S_IRUSR) and not bool(mode & stat.S_IXUSR) \
            and not bool(mode & stat.S_IRWXO) \
            and not bool(mode & stat.S_IRWXG)
    return cond
 

src/e/v/evalimine-HEAD/ivote-server/pybdoc/python/bdocconfig.py   evalimine(Download)
        shutil.copytree(self.__root, dirname)
        fmode = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP
        dmode = stat.S_IRWXU | stat.S_IRWXG
        os.chmod(dirname, dmode)
        for root, dirs, files in os.walk(dirname):

src/m/m/mmc-HEAD/mds/agent/mmc/plugins/samba/smb_conf.py   mmc(Download)
            tmpInsert['public'] = 'yes'
            shlaunch("setfacl -b %s" % path)
            os.chmod(path, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
        else:
            tmpInsert['public'] = 'no'
            os.chmod(path, stat.S_IRWXU | stat.S_IRWXG)

src/o/p/openPDS-HEAD/oms_pds/pds/internal.py   openPDS(Download)
            SQLiteInternalDataStore.INITIALIZED_DATASTORES.append(profile)
            try:
                os.chmod(fileName, stat.S_IREAD | stat.S_IWRITE | stat.S_IEXEC | stat.S_IRWXO | stat.S_IRWXU | stat.S_IRWXG)
            except:
                #this is expected if the user accessing the db isn't the one who owns the file

src/f/s/fslib-0.2.1/fslib/stacking.py   fslib(Download)
def _has_access(mode, uid, gid, target_mode, target_uid, target_gid):
    if uid == target_uid and (mode & target_mode & stat.S_IRWXU):
        return True
    if gid == target_gid and (mode & target_mode & stat.S_IRWXG):
        return True

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