Did I find the right examples for you? yes no

All Samples(5)  |  Call(0)  |  Derive(0)  |  Import(5)
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_IXOTH' : stat.S_IXOTH,
        'S_ENFMT' : stat.S_ENFMT,
        'S_IREAD' : stat.S_IREAD,
        'S_IWRITE' : stat.S_IWRITE,
        'S_IEXEC' : stat.S_IEXEC,

src/w/m/WMCore-HEAD/src/python/WMCore/WMSpec/Steps/Executors/AlcaHarvest.py   WMCore(Download)
                    fout.close()
 
                    os.chmod(filenameDB, stat.S_IREAD | stat.S_IWRITE | stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP | stat.S_IROTH | stat.S_IWOTH)
                    os.chmod(filenameTXT, stat.S_IREAD | stat.S_IWRITE | stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP | stat.S_IROTH | stat.S_IWOTH)
 

src/f/i/files-1.1.1/files.py   files(Download)
 
        if any("r" in i for i in mode) > 0:
            s |= stat.S_IREAD
        elif any("w" in i for i in mode) > 0:
            s |= stat.S_IWRITE

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

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/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/os.py   openvault-core(Download)
        mode = _stat.S_IFREG
    if f.canRead():
        mode = mode | _stat.S_IREAD
    if f.canWrite():
        mode = mode | _stat.S_IWRITE

src/l/o/LODGrefine-HEAD/lod2-google-refine/extensions/jython/module/MOD-INF/lib/jython/os.py   LODGrefine(Download)
        mode = _stat.S_IFREG
    if f.canRead():
        mode = mode | _stat.S_IREAD
    if f.canWrite():
        mode = mode | _stat.S_IWRITE

src/o/h/oh-mainline-HEAD/vendor/packages/staticgenerator/staticgenerator/__init__.py   oh-mainline(Download)
            self.fs.write(f, content)
            self.fs.close(f)
            self.fs.chmod(tmpname, stat.S_IREAD | stat.S_IWRITE | stat.S_IWUSR | stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
            self.fs.rename(tmpname, filename)
        except:

src/c/a/calibre-HEAD/setup/installer/osx/freeze.py   calibre(Download)
                                                        function=function))
            f.close()
            os.chmod(path, stat.S_IXUSR|stat.S_IXGRP|stat.S_IXOTH|stat.S_IREAD\
                     |stat.S_IWUSR|stat.S_IROTH|stat.S_IRGRP)
 

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__]):

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