Did I find the right examples for you? yes no

All Samples(18)  |  Call(0)  |  Derive(0)  |  Import(18)
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/l/a/lamson-1.3.4/examples/librelist/app/model/archive.py   lamson(Download)
])
 
DIR_MOD = stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH
FILE_MOD = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH
 

src/s/a/salmon-mail-1/examples/librelist/app/model/archive.py   salmon-mail(Download)
])
 
DIR_MOD = stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH
FILE_MOD = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH
 

src/l/a/lamson-HEAD/examples/librelist/app/model/archive.py   lamson(Download)
])
 
DIR_MOD = stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH
FILE_MOD = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH
 

src/s/h/shastity-HEAD/src/shastity/filesystem.py   shastity(Download)
        props['group_read']          = (statinfo.st_mode & stat.S_IRGRP) == stat.S_IRGRP
        props['group_write']         = (statinfo.st_mode & stat.S_IWGRP) == stat.S_IWGRP
        props['group_execute']       = (statinfo.st_mode & stat.S_IXGRP) == stat.S_IXGRP
        props['other_read']          = (statinfo.st_mode & stat.S_IROTH) == stat.S_IROTH
        props['other_write']         = (statinfo.st_mode & stat.S_IWOTH) == stat.S_IWOTH

src/p/y/pyant-0.0.5/pyant/extensions/file.py   pyant(Download)
        'S_IRGRP' : stat.S_IRGRP,
        'S_IWGRP' : stat.S_IWGRP,
        'S_IXGRP' : stat.S_IXGRP,
        'S_IRWXO' : stat.S_IRWXO,
        'S_IROTH' : stat.S_IROTH,

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/conch/ls.py   hortonworks-sandbox(Download)
    if mode&stat.S_IRGRP:perms[4] = 'r'
    if mode&stat.S_IWGRP:perms[5] = 'w'
    if mode&stat.S_IXGRP:perms[6] = 'x'
    # other
    if mode&stat.S_IROTH:perms[7] = 'r'

src/b/u/bup-HEAD/lib/bup/xstat.py   bup(Download)
    result += 'r' if (mode & pystat.S_IRGRP) else '-'
    result += 'w' if (mode & pystat.S_IWGRP) else '-'
    result += 'x' if (mode & pystat.S_IXGRP) else '-'
    result += 'r' if (mode & pystat.S_IROTH) else '-'
    result += 'w' if (mode & pystat.S_IWOTH) 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)):

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