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)
        # TODO: socket?
 
        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

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/conch/ls.py   hortonworks-sandbox(Download)
    if mode&stat.S_IXOTH:perms[9] = 'x'
    # suid/sgid
    if mode&stat.S_ISUID:
        if perms[3] == 'x': perms[3] = 's'
        else: perms[3] = 'S'

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/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/conch/ls.py   oh-mainline(Download)
    if mode&stat.S_IXOTH:perms[9] = 'x'
    # suid/sgid
    if mode&stat.S_ISUID:
        if perms[3] == 'x': perms[3] = 's'
        else: perms[3] = 'S'

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/conch/ls.py   mythbox(Download)
    if mode&stat.S_IXOTH:perms[9] = 'x'
    # suid/sgid
    if mode&stat.S_ISUID:
        if perms[3] == 'x': perms[3] = 's'
        else: perms[3] = 'S'

src/z/o/zope.app.twisted-3.5.0/src/twisted/conch/ls.py   zope.app.twisted(Download)
    if mode&stat.S_IXOTH:perms[9] = 'x'
    # suid/sgid
    if mode&stat.S_ISUID:
        if perms[3] == 'x': perms[3] = 's'
        else: perms[3] = 'S'

src/x/y/xyzcmd-HEAD/libxyz/vfs/mode.py   xyzcmd(Download)
                    "w": stat.S_IWUSR,
                    "x": stat.S_IXUSR,
                    "S": stat.S_ISUID,
                    "s": stat.S_IXUSR | stat.S_ISUID,
                    "-": 0
        _str_mode.append(_bit)
 
        _o_mode = _raw & (stat.S_IXUSR | stat.S_ISUID)
 
        if _o_mode == 0:
            _bit = "-"
        elif _o_mode == stat.S_IXUSR:
            _bit = "x"
        elif _o_mode == stat.S_ISUID:
        elif _o_mode == stat.S_ISUID:
            _bit = "S"
        elif _o_mode == stat.S_IXUSR | stat.S_ISUID:
            _bit = "s"
        _str_mode.append(_bit)

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/conch/ls.py   SubliminalCollaborator(Download)
    if mode&stat.S_IXOTH:perms[9] = 'x'
    # suid/sgid
    if mode&stat.S_ISUID:
        if perms[3] == 'x': perms[3] = 's'
        else: perms[3] = 'S'

src/t/w/Twisted-13.2.0/twisted/conch/ls.py   Twisted(Download)
    if mode&stat.S_IXOTH:perms[9] = 'x'
    # suid/sgid
    if mode&stat.S_ISUID:
        if perms[3] == 'x': perms[3] = 's'
        else: perms[3] = 'S'

src/u/n/UnitScan-HEAD/twisted/conch/ls.py   UnitScan(Download)
    if mode&stat.S_IXOTH:perms[9] = 'x'
    # suid/sgid
    if mode&stat.S_ISUID:
        if perms[3] == 'x': perms[3] = 's'
        else: perms[3] = 'S'

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