Did I find the right examples for you? yes no

All Samples(10)  |  Call(0)  |  Derive(0)  |  Import(10)
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/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/p/y/pyant-0.0.5/pyant/extensions/file.py   pyant(Download)
    """
    PERM = {
        'S_IRWXU' : stat.S_IRWXU,
        'S_IRUSR' : stat.S_IRUSR,
        'S_IWUSR' : stat.S_IWUSR,

src/d/i/DIRAC-HEAD/Core/Security/VOMS.py   DIRAC(Download)
  def getVOMSESLocation( self ):
    #755
    requiredDirPerms = stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH
    #644
    requiredFilePerms = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH
    #777
    allPerms = stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO

src/d/i/DIRAC-HEAD/Resources/Computing/glexecComputingElement.py   DIRAC(Download)
    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:
      os.makedirs( sticky )
      os.chmod( sticky, stat.S_ISVTX | stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO )
    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 ) )
                                                        '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/r/e/release-HEAD/pyutils/config.py   release(Download)
# Commonly used permission settings
 
all_rwx = stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO # 777
shell_perms = stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH # 755
data_perms = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH # 644
dir_perms = stat.S_IRWXU | stat.S_IRWXG | stat.S_IROTH | stat.S_IXOTH # 775

src/e/d/edna-HEAD/mxPluginExec/plugins/EDPluginGroupAutoproc/plugins/bin/autoproc-launcher.py   edna(Download)
import sys
import os
from stat import S_IRWXU, S_IXGRP, S_IRGRP, S_IXOTH, S_IROTH, S_IRUSR, S_IWUSR
import os.path
import tempfile
script_file.file.write(script_template.format(path=path, dm_path=dm_path, edna_path=EDNA_PATH, config_path=CONFIG_PATH))
script_path = script_file.name
os.chmod(script_path, S_IRWXU|S_IXGRP|S_IRGRP|S_IXOTH|S_IROTH)
 
 

src/s/h/shrink-1.1.1/shrink/utils.py   shrink(Download)
    else:
        # change read and write permissions on temp file
        owner_rw = (stat.S_IRWXU & ~stat.S_IXUSR)
        group_rw = (stat.S_IRWXG & ~stat.S_IXGRP & ~stat.S_IWGRP)
        others_rw = (stat.S_IRWXO & ~stat.S_IXOTH & ~stat.S_IWOTH)

src/d/i/discourse-HEAD/mailserver/app/model/archive.py   discourse(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
 

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