Did I find the right examples for you? yes no

All Samples(21)  |  Call(0)  |  Derive(0)  |  Import(21)
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/l/llfuse-0.40/examples/tmpfs.py   llfuse(Download)
                            "VALUES (?,?,?,?,?,?,?)",
                            (llfuse.ROOT_INODE, stat.S_IFDIR | stat.S_IRUSR | stat.S_IWUSR
                              | stat.S_IXUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH 
                              | stat.S_IXOTH, os.getuid(), os.getgid(), time(), 
                              time(), time()))
    def symlink(self, inode_p, name, target, ctx):
        mode = (stat.S_IFLNK | stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | 
                stat.S_IRGRP | stat.S_IWGRP | stat.S_IXGRP | 
                stat.S_IROTH | stat.S_IWOTH | stat.S_IXOTH)
        return self._create(inode_p, name, mode, ctx, target=target)

src/d/e/defuse-HEAD/examples/simple.py   defuse(Download)
import fuse
from stat import S_IRUSR, S_IXUSR, S_IWUSR, S_IRGRP, S_IXGRP, S_IXOTH, S_IROTH
 
from fs import FS, BaseMetadata
 
    def __init__(self):
        root_mode = S_IRUSR|S_IXUSR|S_IWUSR|S_IRGRP|S_IXGRP|S_IXOTH|S_IROTH
        self.dir_metadata = BaseMetadata(root_mode, True)
 
    def getattr(self, *args, **kwargs):

src/d/e/defuse-HEAD/examples/evalfs.py   defuse(Download)
import sys
import traceback
 
from stat import S_IRUSR, S_IXUSR, S_IWUSR, S_IRGRP, S_IXGRP, S_IXOTH, S_IROTH
from errno import ENOENT
    def __init__(self):
        file_mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH
        self.file_metadata = BaseMetadata(file_mode, False)
 
        root_mode = S_IRUSR|S_IXUSR|S_IWUSR|S_IRGRP|S_IXGRP|S_IXOTH|S_IROTH

src/s/h/shastity-HEAD/src/shastity/filesystem.py   shastity(Download)
        props['user_read']           = (statinfo.st_mode & stat.S_IRUSR) == stat.S_IRUSR
        props['user_write']          = (statinfo.st_mode & stat.S_IWUSR) == stat.S_IWUSR
        props['user_execute']        = (statinfo.st_mode & stat.S_IXUSR) == stat.S_IXUSR
        props['group_read']          = (statinfo.st_mode & stat.S_IRGRP) == stat.S_IRGRP
        props['group_write']         = (statinfo.st_mode & stat.S_IWGRP) == stat.S_IWGRP

src/p/y/pyant-0.0.5/pyant/extensions/file.py   pyant(Download)
        'S_IRUSR' : stat.S_IRUSR,
        'S_IWUSR' : stat.S_IWUSR,
        'S_IXUSR' : stat.S_IXUSR,
        'S_IRWXG' : stat.S_IRWXG,
        'S_IRGRP' : stat.S_IRGRP,

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/conch/ls.py   hortonworks-sandbox(Download)
    if mode&stat.S_IRUSR:perms[1] = 'r'
    if mode&stat.S_IWUSR:perms[2] = 'w'
    if mode&stat.S_IXUSR:perms[3] = 'x'
    # group
    if mode&stat.S_IRGRP:perms[4] = 'r'

src/b/u/bup-HEAD/lib/bup/xstat.py   bup(Download)
    result += 'r' if (mode & pystat.S_IRUSR) else '-'
    result += 'w' if (mode & pystat.S_IWUSR) else '-'
    result += 'x' if (mode & pystat.S_IXUSR) else '-'
    result += 'r' if (mode & pystat.S_IRGRP) else '-'
    result += 'w' if (mode & pystat.S_IWGRP) else '-'
def classification_str(mode, include_exec):
    if pystat.S_ISREG(mode):
        if include_exec \
           and (pystat.S_IMODE(mode) \
                & (pystat.S_IXUSR | pystat.S_IXGRP | pystat.S_IXOTH)):

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/conch/ls.py   oh-mainline(Download)
    if mode&stat.S_IRUSR:perms[1] = 'r'
    if mode&stat.S_IWUSR:perms[2] = 'w'
    if mode&stat.S_IXUSR:perms[3] = 'x'
    # group
    if mode&stat.S_IRGRP:perms[4] = 'r'

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/conch/ls.py   mythbox(Download)
    if mode&stat.S_IRUSR:perms[1] = 'r'
    if mode&stat.S_IWUSR:perms[2] = 'w'
    if mode&stat.S_IXUSR:perms[3] = 'x'
    # group
    if mode&stat.S_IRGRP:perms[4] = 'r'

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/conch/ls.py   SubliminalCollaborator(Download)
    if mode&stat.S_IRUSR:perms[1] = 'r'
    if mode&stat.S_IWUSR:perms[2] = 'w'
    if mode&stat.S_IXUSR:perms[3] = 'x'
    # group
    if mode&stat.S_IRGRP:perms[4] = 'r'

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