Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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/pyroute2-HEAD/pyroute2/iocore/iocore.py   pyroute2(Download)
from pyroute2.netlink import IPRCMD_REMOVE
from pyroute2.netlink import IPRCMD_DISCOVER
from pyroute2.netlink import IPRCMD_STOP
from pyroute2.netlink import NLMSG_DONE
from pyroute2.netlink import NLM_F_MULTI
                if addr == self.default_broker:
                    raise e
        self.command(IPRCMD_STOP)
        if self.forked_broker:
            self.forked_broker.join()

src/p/y/pyroute2-0.2.8/pyroute2/iocore/iocore.py   pyroute2(Download)
from pyroute2.netlink import IPRCMD_REMOVE
from pyroute2.netlink import IPRCMD_DISCOVER
from pyroute2.netlink import IPRCMD_STOP
from pyroute2.netlink import NLMSG_DONE
from pyroute2.netlink import NLM_F_MULTI
                if addr == self.default_broker:
                    raise e
        self.command(IPRCMD_STOP)
        if self.forked_broker:
            self.forked_broker.join()

src/p/y/pyroute2-HEAD/pyroute2/iocore/modules/stop.py   pyroute2(Download)
from pyroute2.netlink import IPRCMD_STOP
from pyroute2.iocore.utils import access
 
 
target = IPRCMD_STOP

src/p/y/pyroute2-0.2.8/pyroute2/iocore/modules/stop.py   pyroute2(Download)
from pyroute2.netlink import IPRCMD_STOP
from pyroute2.iocore.utils import access
 
 
target = IPRCMD_STOP

src/p/y/pyroute2-HEAD/tests/test_messaging.py   pyroute2(Download)
from pyroute2.netlink import IPRCMD_STOP
from pyroute2.netlink import IPRCMD_RELOAD
from pyroute2.netlink import IPRCMD_SUBSCRIBE
from pyroute2.iocore import NLT_DGRAM
from pyroute2.rpc import public
        # this test stopped to work properly after the
        # broker became a separate process
        self.ioc2.command(IPRCMD_STOP, addr=self.host[1])
 
    def test_reload(self):
    def test_fail_access(self):
        self.ioc2.unregister(self.host[1])
        try:
            self.ioc2.command(IPRCMD_STOP, addr=self.host[1])
        except RuntimeError: