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/pyant-0.0.5/pyant/extensions/file.py   pyant(Download)
        'S_IWGRP' : stat.S_IWGRP,
        'S_IXGRP' : stat.S_IXGRP,
        'S_IRWXO' : stat.S_IRWXO,
        'S_IROTH' : stat.S_IROTH,
        'S_IWOTH' : stat.S_IWOTH,

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/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/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

src/s/h/shrink-1.1.1/shrink/utils.py   shrink(Download)
        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)
    cond = bool(mode & stat.S_IRUSR) and not bool(mode & stat.S_IWUSR) \
            and not bool(mode & stat.S_IXUSR) \
            and not bool(mode & stat.S_IRWXO) \
            and not bool(mode & stat.S_IRWXG)
    return cond
def check_0600(kfile):
    "Check 0600 permission of given file"
    mode = os.stat(kfile).st_mode
    cond = bool(mode & stat.S_IRUSR) and not bool(mode & stat.S_IXUSR) \
            and not bool(mode & stat.S_IRWXO) \

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)
    if gid == target_gid and (mode & target_mode & stat.S_IRWXG):
        return True
    if mode & target_mode & stat.S_IRWXO:
        return True
    return False

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'

src/m/p/MPD_sima-0.11.dev/src/mpdsima/utils/config.py   MPD_sima(Download)
from os import (makedirs, environ, stat, chmod)
from os.path import (join, isdir, isfile)
from stat import (S_IMODE, ST_MODE, S_IRWXO, S_IRWXG)
 
from . import utils
        mode = S_IMODE(stat(self.conf_file)[ST_MODE])
        self.log.debug('file permision is: %o' % mode)
        if mode & S_IRWXO or mode & S_IRWXG:
            self.log.warning('File is readable by "other" and/or' +
                             ' "group" (actual permission %o octal).' %

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