Did I find the right examples for you? yes no

All Samples(183)  |  Call(183)  |  Derive(0)  |  Import(0)

src/d/j/django-pragmatic-1.0.0/pragmatic/fields.py   django-pragmatic(Download)
 
        try:
            start, stop = value.split('-', 1)
            start = float(start.strip())
            stop = float(stop.strip())

src/r/o/rose-HEAD/lib/python/rose/app_run.py   rose(Download)
                    repeat = 1
                    if "*" in value:
                        repeat, value = value.split("*", 1)
                        try:
                            repeat = int(repeat)

src/b/a/baruwa-2.0.1/baruwa/lib/spamd.py   baruwa(Download)
        isspam, score = self.response_headers['Spam'].split(';', 1)
        isspam = (isspam.strip() != 'False')
        score = float(score.split('/', 1)[0])
        return isspam, score
 

src/i/n/intranet-HEAD/src/intranet3/intranet3/forms/times.py   intranet(Download)
def time_filter(data):
    if data:
        if not isinstance(data, float) and data.count(':'):
            try:
                h, min = [int(i) for i in data.split(':')]

src/r/o/roundup-1.5.0/roundup/cgi/actions.py   roundup(Download)
                    # if it's a multilink, split it
                    if isinstance(prop, hyperdb.Multilink):
                        value = value.split(':')
                    elif isinstance(prop, hyperdb.Password):
                        value = password.Password(value, config=self.db.config)

src/b/a/baruwa2-HEAD/baruwa/lib/spamd.py   baruwa2(Download)
        isspam, score = self.response_headers['Spam'].split(';', 1)
        isspam = (isspam.strip() != 'False')
        score = float(score.split('/', 1)[0])
        return isspam, score
 

src/h/t/HTPC-Manager-HEAD/libs/sqlobject/firebird/firebirdconnection.py   HTPC-Manager(Download)
 
            if defaultSource: # can look like: "DEFAULT 0", "DEFAULT 'default text'", None
                defaultSource = defaultSource.split(' ')[1]
                if defaultSource.startswith ("'") and defaultSource.endswith ("'"):
                    defaultSource = str(defaultSource[1:-1])

src/s/q/SQLObject-1.6.0b1dev-r4713/sqlobject/firebird/firebirdconnection.py   SQLObject(Download)
 
            if defaultSource: # can look like: "DEFAULT 0", "DEFAULT 'default text'", None
                defaultSource = defaultSource.split(' ')[1]
                if defaultSource.startswith ("'") and defaultSource.endswith ("'"):
                    defaultSource = str(defaultSource[1:-1])

src/p/y/python-ase-3.8.1/ase/calculators/vasp.py   python-ase(Download)
                if 'e' not in b.lower():
                    # replace last occurence of - (assumed exponent) with -e
                    bsplit = b.split('-')
                    bsplit[-1] = 'e' + bsplit[-1]
                    b = '-'.join(bsplit).replace('-e','e-')

src/p/y/pyMoney-1.2.31/Money/Money.py   pyMoney(Download)
            amount = amount.strip()
            if amount != '':
                parts = amount.split()
                amount = parts[0]
                if len(parts) == 2:
 
        if isinstance(amount, basestring):
            amount = amount.split(currency.getSymbol())[-1]
            amount = float(amount.replace(',',''))        
 

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