Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
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/s/h/shastity-HEAD/src/shastity/filesystem.py   shastity(Download)
        props['is_setuid']           = (statinfo.st_mode & stat.S_ISUID) == stat.S_ISUID
        props['is_setgid']           = (statinfo.st_mode & stat.S_ISGID) == stat.S_ISGID
        props['is_sticky']           = (statinfo.st_mode & stat.S_ISVTX) == stat.S_ISVTX
 
        props['user_read']           = (statinfo.st_mode & stat.S_IRUSR) == stat.S_IRUSR

src/b/c/bcfg2-old-HEAD/src/lib/Client/Tools/POSIX.py   bcfg2-old(Download)
def calcPerms(initial, perms):
    """This compares ondisk permissions with specified ones."""
    pdisp = [{1:stat.S_ISVTX, 2:stat.S_ISGID, 4:stat.S_ISUID},
             {1:stat.S_IXUSR, 2:stat.S_IWUSR, 4:stat.S_IRUSR},
             {1:stat.S_IXGRP, 2:stat.S_IWGRP, 4:stat.S_IRGRP},

src/x/y/xyzcmd-HEAD/libxyz/vfs/mode.py   xyzcmd(Download)
                    "w": stat.S_IWOTH,
                    "x": stat.S_IXOTH,
                    "T": stat.S_ISVTX,
                    "t": stat.S_IXOTH | stat.S_ISVTX,
                    "-": 0
        _str_mode.append(_bit)
 
        _o_mode = _raw & (stat.S_IXOTH | stat.S_ISVTX)
 
        if _o_mode == 0:
            _bit = "-"
        elif _o_mode == stat.S_IXOTH:
            _bit = "x"
        elif _o_mode == stat.S_ISVTX:
        elif _o_mode == stat.S_ISVTX:
            _bit = "T"
        elif _o_mode == stat.S_IXOTH | stat.S_ISVTX:
            _bit = "t"
        _str_mode.append(_bit)

src/g/l/glusterflow-HEAD/translator/debugging_pieces/debug-trace.py   glusterflow(Download)
                prot_bit |= stat.S_ISGID
        if prot.sticky:
                prot_bit |= stat.S_ISVTX
 
        if prot.owner.read:

src/h/o/hortonworks-sandbox-HEAD/apps/filebrowser/src/filebrowser/lib/rwx.py   hortonworks-sandbox(Download)
    stat.S_IRGRP, stat.S_IWGRP, stat.S_IXGRP,
    stat.S_IROTH, stat.S_IWOTH, stat.S_IXOTH,
    stat.S_ISVTX)
 
def expand_mode(mode):

src/g/l/glupy-HEAD/debug-trace.py   glupy(Download)
                prot_bit |= stat.S_ISGID
        if prot.sticky:
                prot_bit |= stat.S_ISVTX
 
        if prot.owner.read:

src/t/o/TopHat-1.02/TopHat_Platform/Common/pathfinder/pathfinder.py   TopHat(Download)
                      m & stat.S_ISGID, "s") + \
            self._fmt(m & stat.S_IROTH, m & stat.S_IWOTH, m & stat.S_IXOTH,
                      m & stat.S_ISVTX, "t")
        return "<%04o %s>" % (self.mode, modestr)
 

src/h/u/hue-HEAD/apps/filebrowser/src/filebrowser/lib/rwx.py   hue(Download)
    stat.S_IRGRP, stat.S_IWGRP, stat.S_IXGRP,
    stat.S_IROTH, stat.S_IWOTH, stat.S_IXOTH,
    stat.S_ISVTX)
 
def expand_mode(mode):

src/n/o/nori-1.0/core.py   nori(Download)
    if mode & stat.S_ISGID:
        mode_chars[6] = 's' if mode & stat.S_IXGRP else 'S'
    if mode & stat.S_ISVTX:
        mode_chars[9] = 't' if mode & stat.S_IXGRP else 'T'
 

src/f/i/files-1.1.1/files.py   files(Download)
            s |= stat.S_ISUID
        if "vtx" in mode:
            s |= stat.S_ISVTX
 
        os.chmod(str(self.path), s)

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