Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
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/s/psdash-0.3.0/psdash/web.py   psdash(Download)
        "RLIMIT_MSGQUEUE": p.get_rlimit(psutil.RLIMIT_MSGQUEUE),
        "RLIMIT_NICE": p.get_rlimit(psutil.RLIMIT_NICE),
        "RLIMIT_NOFILE": p.get_rlimit(psutil.RLIMIT_NOFILE),
        "RLIMIT_NPROC": p.get_rlimit(psutil.RLIMIT_NPROC),
        "RLIMIT_RSS": p.get_rlimit(psutil.RLIMIT_RSS),

src/p/s/psdash-HEAD/psdash/web.py   psdash(Download)
        "RLIMIT_MSGQUEUE": p.get_rlimit(psutil.RLIMIT_MSGQUEUE),
        "RLIMIT_NICE": p.get_rlimit(psutil.RLIMIT_NICE),
        "RLIMIT_NOFILE": p.get_rlimit(psutil.RLIMIT_NOFILE),
        "RLIMIT_NPROC": p.get_rlimit(psutil.RLIMIT_NPROC),
        "RLIMIT_RSS": p.get_rlimit(psutil.RLIMIT_RSS),

src/p/s/psutil-2.1.1/test/test_psutil.py   psutil(Download)
    def test_rlimit_set(self):
        sproc = get_test_subprocess()
        p = psutil.Process(sproc.pid)
        p.rlimit(psutil.RLIMIT_NOFILE, (5, 5))
        self.assertEqual(p.rlimit(psutil.RLIMIT_NOFILE), (5, 5))
                    meth(2)
                elif name == 'rlimit':
                    meth(psutil.RLIMIT_NOFILE)
                    meth(psutil.RLIMIT_NOFILE, (5, 5))
                elif name == 'cpu_affinity':
                        if attr is not None and callable(attr):
                            if name == 'rlimit':
                                args = (psutil.RLIMIT_NOFILE,)
                            ret = attr(*args)
                        else:

src/p/s/psutil-2.1.1/test/_posix.py   psutil(Download)
            if attr is not None and callable(attr):
                if name == 'rlimit':
                    args = (psutil.RLIMIT_NOFILE,)
                elif name == 'set_rlimit':
                    args = (psutil.RLIMIT_NOFILE, (5, 5))

src/p/s/psutil-2.1.1/test/_linux.py   psutil(Download)
    def test_prlimit_availability(self):
        # prlimit() should be available starting from kernel 2.6.36
        p = psutil.Process(os.getpid())
        p.rlimit(psutil.RLIMIT_NOFILE)
        # if prlimit() is supported *at least* these constants should

src/p/s/psutil-2.1.1/test/test_memory_leaks.py   psutil(Download)
    def test_rlimit(self):
        self.execute('rlimit', psutil.RLIMIT_NOFILE)
 
    @unittest.skipUnless(LINUX, "feature not supported on this platform")
    def test_set_rlimit(self):
        limit = psutil.Process(os.getpid()).rlimit(psutil.RLIMIT_NOFILE)
        self.execute('set_rlimit', psutil.RLIMIT_NOFILE, limit)