Did I find the right examples for you? yes no

All Samples(20)  |  Call(0)  |  Derive(0)  |  Import(20)
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)
                            (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()))
        self.cursor.execute("INSERT INTO contents (name, parent_inode, inode) VALUES (?,?,?)",
    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['other_read']          = (statinfo.st_mode & stat.S_IROTH) == stat.S_IROTH
        props['other_write']         = (statinfo.st_mode & stat.S_IWOTH) == stat.S_IWOTH
        props['other_execute']        = (statinfo.st_mode & stat.S_IXOTH) == stat.S_IXOTH
 
        props['uid']                 = statinfo[stat.ST_UID]

src/p/y/pyant-0.0.5/pyant/extensions/file.py   pyant(Download)
        'S_IROTH' : stat.S_IROTH,
        'S_IWOTH' : stat.S_IWOTH,
        'S_IXOTH' : stat.S_IXOTH,
        'S_ENFMT' : stat.S_ENFMT,
        'S_IREAD' : stat.S_IREAD,

src/d/i/DIRAC-HEAD/Resources/Computing/glexecComputingElement.py   DIRAC(Download)
  def __allow_gl_travel( self, dirpath ):
    if dirpath == "/" or not dirpath:
      return
    if self.__addperm( dirpath, stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH ):
      self.__allow_gl_travel( os.path.dirname( dirpath ) )
  def __prepare_tmpdir( self ):
    self.log.info( "Setting world-take-a-loot-at-all-my-things permissions..." )
    self.__allow_gl_see( DIRAC.rootPath )
    self.log.info( "Allowing everybody to execute my scripts..." )
    self.__allow_gl_see( os.path.join( DIRAC.rootPath, "scripts" ), stat.S_IXOTH )
    self.log.info( "You're welcome to execute my binaries...." )
    self.__allow_gl_see( os.path.join( DIRAC.rootPath, DIRAC.platform, "bin" ), stat.S_IXOTH )
    self.__allow_gl_travel( self.__glBaseDir )
    self.log.info( "Robbers can now get 'hasta-la-cocina'" )
    os.chmod( self.__glBaseDir, stat.S_IRWXU | stat.S_IXGRP | stat.S_IXOTH )
    sticky = os.path.join( self.__glBaseDir, "trans" )
    try:
                                                        'glexec' : self.__gl } ) )
 
    os.chmod( glwrapper, stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH )
    os.chmod( self.__execFile, stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH )
 

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/conch/ls.py   hortonworks-sandbox(Download)
    if mode&stat.S_IROTH:perms[7] = 'r'
    if mode&stat.S_IWOTH:perms[8] = 'w'
    if mode&stat.S_IXOTH:perms[9] = 'x'
    # suid/sgid
    if mode&stat.S_ISUID:

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