Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
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/p/y/pyant-0.0.5/pyant/extensions/file.py   pyant(Download)
        'S_IREAD' : stat.S_IREAD,
        'S_IWRITE' : stat.S_IWRITE,
        'S_IEXEC' : stat.S_IEXEC,
        'UF_NODUMP' : stat.UF_NODUMP,
        'UF_IMMUTABLE' : stat.UF_IMMUTABLE,

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 ) )
    self.log.info( 'Changing permissions of test script to 0755' )
    try:
      os.chmod( os.path.abspath( testFile ), stat.S_IRWXU | stat.S_IREAD | stat.S_IEXEC )
    except Exception, x:
      self.log.error( 'Failed to change permissions of test script to 0755 with exception:\n%s' % ( x ) )
    if executableList:
      try:
        os.chmod( executableList[0], os.stat( executableList[0] )[0] | stat.S_IEXEC | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH )
      except:
        pass

src/r/e/relinux-HEAD/src/relinux/fsutil.py   relinux(Download)
        rbit = stat.S_IREAD
        wbit = stat.S_IWRITE
        ebit = stat.S_IEXEC
    elif c == 2:
        rbit = stat.S_IRGRP

src/p/y/pyful-0.2.2/pyful/filer.py   pyful(Download)
    def isexec(self):
        return stat.S_IEXEC & self.stat.st_mode
 
    def markon(self):
        self.marked = True

src/p/y/pyful-HEAD/pyful/filer.py   pyful(Download)
    def isexec(self):
        return stat.S_IEXEC & self.stat.st_mode
 
    def markon(self):
        self.marked = True

src/u/p/updater4pyi-0.2/updater4pyi/upd_core.py   updater4pyi(Download)
                # make sure the file is executable
                os.chmod(tmpfile.name,
                         stat.S_IREAD|stat.S_IWRITE|stat.S_IEXEC|
                         stat.S_IRUSR|stat.S_IWUSR|stat.S_IXUSR|
                         stat.S_IRGRP|stat.S_IXGRP|

src/c/a/calibre-HEAD/setup/installer/linux/freeze2.py   calibre(Download)
                shutil.copy2(c_launcher, sh)
                os.chmod(sh,
                    stat.S_IREAD|stat.S_IEXEC|stat.S_IWRITE|stat.S_IRGRP|stat.S_IXGRP|stat.S_IROTH|stat.S_IXOTH)
 
                if self.newer(exe, [dest, __file__]):

src/w/e/weblabdeusto-HEAD/server/src/weblab/admin/client_deploy.py   weblabdeusto(Download)
                ant_name = os.path.join('external','ant','bin','ant')
                # Required in UNIX, ignored in Linux
                os.chmod(ant_name, stat.S_IREAD |stat.S_IWRITE | stat.S_IEXEC | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH )
            if os.system(ant_name + ' gwtc') != 0:
                print >> sys.stderr, "ERROR: Could not compile the client!!!"

src/s/c/scalarizr-HEAD/src/scalarizr/handlers/script_executor.py   scalarizr(Download)
                         stat.S_IRGRP |
                         stat.S_IROTH |
                         stat.S_IEXEC |
                         stat.S_IXGRP |
                         stat.S_IXOTH)

src/d/j/django-repositories-0.1.1/repositories/models.py   django-repositories(Download)
            f.close()
            # set the premissions of the file
            os.chmod(file_path, stat.S_IWRITE | stat.S_IREAD | stat.S_IEXEC | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH)
        except:
            pass

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