def extract(s):
    res = decoder.match(s)
    if res is None: raise NotANumber, s
    sign, intpart, fraction, exppart = res.group(1,2,3,4)
    if sign == '+': sign = ''
    if fraction: fraction = fraction[1:]
    if exppart: expo = int(exppart[1:])
    else: expo = 0
    return sign, intpart, fraction, expo
Return (sign, intpart, fraction, expo) or raise an exception:
dataset/ETHPy150Open babble/babble/include/jython/Lib/fpformat.py/extract