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

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)
float(x) -> floating point number

Convert a string or number to a floating point number, if possible.

src/c/i/circuits-3.0.0.dev/examples/testing/pytest/conftest.py   circuits(Download)
from collections import deque
 
from circuits.core.manager import TIMEOUT
from circuits import handler, BaseComponent, Debugger, Manager
 
    def wait(self, name, channel=None, timeout=6.0):
        for i in range(int(timeout / TIMEOUT)):
            if channel is None:
                with self._lock:
                    for event in self.events:
                            return True
 
            sleep(TIMEOUT)
 
 
    def wait(self):
        try:
            for i in range(int(self.timeout / TIMEOUT)):
                if self.flag.status:
                    return True
                sleep(TIMEOUT)

src/c/i/circuits-3.0.0.dev/circuits/io/process.py   circuits(Download)
from subprocess import Popen, PIPE
 
from circuits.core.manager import TIMEOUT
from circuits import handler, BaseComponent
 
            event.stop()
        else:
            event.reduce_time_left(TIMEOUT)
 

src/c/i/circuits-3.0.0.dev/tests/conftest.py   circuits(Download)
from collections import deque
 
from circuits.core.manager import TIMEOUT
from circuits import handler, BaseComponent, Debugger, Manager
 
    def wait(self, name, channel=None, timeout=6.0):
        try:
            for i in range(int(timeout / TIMEOUT)):
                if channel is None:
                    with self._lock:
                                return True
 
                sleep(TIMEOUT)
        finally:
            pass
    def wait(self):
        try:
            for i in range(int(self.timeout / TIMEOUT)):
                if self.flag.status:
                    return True
                sleep(TIMEOUT)

src/c/i/circuits-bricks-0.3/tests/helpers.py   circuits-bricks(Download)
    def wait(self):
        from circuits.core.manager import TIMEOUT
        try:
            for i in range(int(self.timeout / TIMEOUT)):
                if self.flag.status:
                    return True
                sleep(TIMEOUT)
def wait_for(obj, attr, value=True, timeout=3.0):
    from circuits.core.manager import TIMEOUT
    for i in range(int(timeout / TIMEOUT)):
        if isinstance(value, collections.Callable):
            if value(obj, attr):